Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const useStyles = makeStyles()((theme) => ({
},
rainbowBorder: {
animation: `${rainbowBorderKeyFrames} 6s linear infinite`,
transition: '1s ease',
transition: 'none',
fill: 'none',
strokeLinejoin: 'round',
strokeLinecap: 'round',
Expand Down
2 changes: 1 addition & 1 deletion packages/mask/src/plugins/Avatar/SNSAdaptor/RainbowBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const useStyles = makeStyles<StyleProps>()((theme, { width, height, radius = '10
width,
height,
boxShadow: '0 5px 15px rgba(0, 248, 255, 0.4), 0 10px 30px rgba(37, 41, 46, 0.2)',
transition: '.125s ease',
transition: 'none',
borderRadius: radius,
display: 'flex',
justifyContent: 'center',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { MutationObserverWatcher } from '@dimensiondev/holoflows-kit'
import { createReactRootShadowed, startWatch, untilElementAvailable } from '../../../utils'
import {
searchAppBarBackSelector,
searchInjectSpanSelector,
searchNewTweetButtonSelector,
searchProfileEmptySelector,
searchProfileTabListLastChildSelector,
Expand Down Expand Up @@ -97,10 +96,6 @@ async function clear() {
const eleEmpty = searchProfileEmptySelector().evaluate()
if (eleEmpty) eleEmpty.style.display = 'none'

// hide rainbow
const span = searchInjectSpanSelector().evaluate() as HTMLElement
span.style.display = 'none'

// hide the content page
await untilElementAvailable(searchProfileTabPageSelector())

Expand All @@ -115,9 +110,6 @@ function reset() {
const eleEmpty = searchProfileEmptySelector().evaluate()
if (eleEmpty) eleEmpty.style.display = ''

const span = searchInjectSpanSelector().evaluate() as HTMLElement
span.style.display = ''

const elePage = searchProfileTabPageSelector().evaluate()
if (elePage) elePage.style.visibility = 'visible'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ export const searchProfileTabPageSelector: () => LiveSelector<E, true> = () =>
'[data-testid="primaryColumn"] [role="navigation"] ~ [aria-labelledby^="accessible-list"] [role="heading"] ~ div[aria-label]',
)

export const searchInjectSpanSelector = () => searchProfileTabPageSelector().querySelector('div')

export const searchProfileEmptySelector: () => LiveSelector<E, true> = () =>
querySelector<E>('[data-testid="primaryColumn"] [data-testid="emptyState"]')
export const searchProfileActiveTabSelector: () => LiveSelector<E, true> = () =>
Expand Down