fix(mobile): header will be clipped when modal opened and page scrolled (#8079)

close AF-1332

This issue is caused by radix, it will set `overflow: hidden` to body when modal opened. And header is implemented with `position: sticky`.

> **why not use `position: fixed` for header?**
>
> We need to handle `padding-top` manually to avoid content covered by header.
This commit is contained in:
CatsJuice
2024-09-04 09:36:18 +00:00
parent 2524491bd1
commit 51bc40d2a8
2 changed files with 5 additions and 0 deletions

View File

@@ -21,3 +21,6 @@ globalStyle('html', {
overflowY: 'auto',
background: cssVarV2('layer/background/secondary'),
});
globalStyle('body[data-scroll-locked][style]', {
overflow: 'clip !important',
});

View File

@@ -48,6 +48,8 @@ export const wsSelectorWrapper = style({
flex: 1,
height: wsSelectorHeight,
padding: '0 10px 0 16px',
display: 'flex',
alignItems: 'center',
});
export const settingWrapper = style({