fix: z-index on app sidebar (#2761)

Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
Hyden Liu
2023-06-30 09:14:44 +08:00
committed by GitHub
parent bc3ce7395e
commit 9873baae9f
2 changed files with 4 additions and 3 deletions

View File

@@ -13,13 +13,14 @@ export const navWrapperStyle = style({
width: navWidthVar,
minWidth: navWidthVar,
height: '100%',
zIndex: 2,
zIndex: 1,
paddingBottom: '8px',
backgroundColor: 'transparent',
'@media': {
[`(max-width: ${floatingMaxWidth}px)`]: {
position: 'absolute',
width: `calc(${navWidthVar})`,
zIndex: 4,
backgroundColor: 'var(--affine-background-primary-color)',
selectors: {
'&[data-open="false"]': {
@@ -97,7 +98,6 @@ export const sidebarFloatMaskStyle = style({
left: 0,
right: '100%',
bottom: 0,
zIndex: 1,
background: 'var(--affine-background-modal-color)',
'@media': {
[`(max-width: ${floatingMaxWidth}px)`]: {
@@ -106,6 +106,7 @@ export const sidebarFloatMaskStyle = style({
opacity: 1,
pointerEvents: 'auto',
right: '0',
zIndex: 3,
},
},
},

View File

@@ -54,7 +54,7 @@ export const mainContainerStyle = style({
position: 'relative',
flexGrow: 1,
maxWidth: '100%',
zIndex: 0,
zIndex: 2,
backgroundColor: 'var(--affine-background-primary-color)',
selectors: {
'&[data-is-desktop="true"]': {