mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix(mobile): fix home header setting icon (#8859)
This commit is contained in:
@@ -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} />
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user