mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 05:47:09 +08:00
fix: z-index on app sidebar (#2761)
Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
@@ -13,13 +13,14 @@ export const navWrapperStyle = style({
|
|||||||
width: navWidthVar,
|
width: navWidthVar,
|
||||||
minWidth: navWidthVar,
|
minWidth: navWidthVar,
|
||||||
height: '100%',
|
height: '100%',
|
||||||
zIndex: 2,
|
zIndex: 1,
|
||||||
paddingBottom: '8px',
|
paddingBottom: '8px',
|
||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
'@media': {
|
'@media': {
|
||||||
[`(max-width: ${floatingMaxWidth}px)`]: {
|
[`(max-width: ${floatingMaxWidth}px)`]: {
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
width: `calc(${navWidthVar})`,
|
width: `calc(${navWidthVar})`,
|
||||||
|
zIndex: 4,
|
||||||
backgroundColor: 'var(--affine-background-primary-color)',
|
backgroundColor: 'var(--affine-background-primary-color)',
|
||||||
selectors: {
|
selectors: {
|
||||||
'&[data-open="false"]': {
|
'&[data-open="false"]': {
|
||||||
@@ -97,7 +98,6 @@ export const sidebarFloatMaskStyle = style({
|
|||||||
left: 0,
|
left: 0,
|
||||||
right: '100%',
|
right: '100%',
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
zIndex: 1,
|
|
||||||
background: 'var(--affine-background-modal-color)',
|
background: 'var(--affine-background-modal-color)',
|
||||||
'@media': {
|
'@media': {
|
||||||
[`(max-width: ${floatingMaxWidth}px)`]: {
|
[`(max-width: ${floatingMaxWidth}px)`]: {
|
||||||
@@ -106,6 +106,7 @@ export const sidebarFloatMaskStyle = style({
|
|||||||
opacity: 1,
|
opacity: 1,
|
||||||
pointerEvents: 'auto',
|
pointerEvents: 'auto',
|
||||||
right: '0',
|
right: '0',
|
||||||
|
zIndex: 3,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export const mainContainerStyle = style({
|
|||||||
position: 'relative',
|
position: 'relative',
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
maxWidth: '100%',
|
maxWidth: '100%',
|
||||||
zIndex: 0,
|
zIndex: 2,
|
||||||
backgroundColor: 'var(--affine-background-primary-color)',
|
backgroundColor: 'var(--affine-background-primary-color)',
|
||||||
selectors: {
|
selectors: {
|
||||||
'&[data-is-desktop="true"]': {
|
'&[data-is-desktop="true"]': {
|
||||||
|
|||||||
Reference in New Issue
Block a user