mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 04:51:49 +08:00
fix(mobile): fix home header setting icon (#8859)
This commit is contained in:
@@ -58,9 +58,7 @@ export const HomeHeader = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SafeArea top className={styles.root}>
|
<SafeArea top className={styles.root}>
|
||||||
<div className={styles.headerSettingRow}>
|
<div className={styles.headerSettingRow} />
|
||||||
<IconButton onClick={openSetting} size={28} icon={<SettingsIcon />} />
|
|
||||||
</div>
|
|
||||||
<div className={styles.wsSelectorAndSearch}>
|
<div className={styles.wsSelectorAndSearch}>
|
||||||
<WorkspaceSelector ref={workspaceCardRef} />
|
<WorkspaceSelector ref={workspaceCardRef} />
|
||||||
<SearchInput placeholder={t['Quick search']()} onClick={navSearch} />
|
<SearchInput placeholder={t['Quick search']()} onClick={navSearch} />
|
||||||
|
|||||||
@@ -14,10 +14,7 @@ export const root = style({
|
|||||||
width: '100dvw',
|
width: '100dvw',
|
||||||
});
|
});
|
||||||
export const headerSettingRow = style({
|
export const headerSettingRow = style({
|
||||||
display: 'flex',
|
|
||||||
justifyContent: 'end',
|
|
||||||
height: 44,
|
height: 44,
|
||||||
paddingRight: 10,
|
|
||||||
});
|
});
|
||||||
export const wsSelectorAndSearch = style({
|
export const wsSelectorAndSearch = style({
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
@@ -30,7 +27,6 @@ export const float = style({
|
|||||||
position: 'fixed',
|
position: 'fixed',
|
||||||
top: 0,
|
top: 0,
|
||||||
width: '100%',
|
width: '100%',
|
||||||
background: cssVarV2('layer/background/mobile/primary'),
|
|
||||||
zIndex: 1,
|
zIndex: 1,
|
||||||
|
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
@@ -39,14 +35,22 @@ export const float = style({
|
|||||||
gap: 10,
|
gap: 10,
|
||||||
|
|
||||||
// visibility control
|
// visibility control
|
||||||
visibility: 'hidden',
|
background: 'transparent',
|
||||||
selectors: {
|
selectors: {
|
||||||
'&.dense': {
|
'&.dense': {
|
||||||
visibility: 'visible',
|
background: cssVarV2('layer/background/mobile/primary'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
export const floatWsSelector = style({
|
export const floatWsSelector = style({
|
||||||
width: 0,
|
width: 0,
|
||||||
flex: 1,
|
flex: 1,
|
||||||
|
visibility: 'hidden',
|
||||||
|
pointerEvents: 'none',
|
||||||
|
selectors: {
|
||||||
|
[`${float}.dense &`]: {
|
||||||
|
visibility: 'visible',
|
||||||
|
pointerEvents: 'auto',
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user