fix(mobile): fix home header setting icon (#8859)

This commit is contained in:
CatsJuice
2024-11-21 02:05:26 +00:00
parent 2624e26d72
commit c408d73257
2 changed files with 11 additions and 9 deletions

View File

@@ -58,9 +58,7 @@ export const HomeHeader = () => {
return (
<>
<SafeArea top className={styles.root}>
<div className={styles.headerSettingRow}>
<IconButton onClick={openSetting} size={28} icon={<SettingsIcon />} />
</div>
<div className={styles.headerSettingRow} />
<div className={styles.wsSelectorAndSearch}>
<WorkspaceSelector ref={workspaceCardRef} />
<SearchInput placeholder={t['Quick search']()} onClick={navSearch} />

View File

@@ -14,10 +14,7 @@ export const root = style({
width: '100dvw',
});
export const headerSettingRow = style({
display: 'flex',
justifyContent: 'end',
height: 44,
paddingRight: 10,
});
export const wsSelectorAndSearch = style({
display: 'flex',
@@ -30,7 +27,6 @@ export const float = style({
position: 'fixed',
top: 0,
width: '100%',
background: cssVarV2('layer/background/mobile/primary'),
zIndex: 1,
display: 'flex',
@@ -39,14 +35,22 @@ export const float = style({
gap: 10,
// visibility control
visibility: 'hidden',
background: 'transparent',
selectors: {
'&.dense': {
visibility: 'visible',
background: cssVarV2('layer/background/mobile/primary'),
},
},
});
export const floatWsSelector = style({
width: 0,
flex: 1,
visibility: 'hidden',
pointerEvents: 'none',
selectors: {
[`${float}.dense &`]: {
visibility: 'visible',
pointerEvents: 'auto',
},
},
});