Skip to content
Merged
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
@@ -1,6 +1,6 @@
import { MutationObserverWatcher } from '@dimensiondev/holoflows-kit'
import { EnhancedProfileTab } from '../../../components/InjectedComponents/EnhancedProfileTab'
import { createReactRootShadowed, startWatch } from '../../../utils'
import { createReactRootShadowed, startWatch, untilElementAvailable } from '../../../utils'
import {
searchForegroundColorSelector,
searchNewTweetButtonSelector,
Expand Down Expand Up @@ -71,7 +71,7 @@ const useStyles = makeStyles<StyleProps>()((theme, props) => ({

const EMPTY_STYLE = {} as CSSStyleDeclaration

function clear() {
async function clear() {
const eleTab = searchProfileTabSelector().evaluate()?.querySelector('div') as Element
if (!eleTab) return
const style = window.getComputedStyle(eleTab)
Expand All @@ -87,6 +87,7 @@ function clear() {
if (eleEmpty) eleEmpty.style.display = 'none'

// set display: none will change the height of the original element
await untilElementAvailable(searchProfileTabPageSelector())
const elePage = searchProfileTabPageSelector().evaluate()
if (elePage) elePage.style.visibility = 'hidden'
}
Expand Down