mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix: incorrect scrollbar position when opening full width layout (#2869)
Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
@@ -7,12 +7,10 @@ export const pluginContainer = style({
|
|||||||
|
|
||||||
export const editor = style({
|
export const editor = style({
|
||||||
height: 'calc(100% - 52px)',
|
height: 'calc(100% - 52px)',
|
||||||
|
|
||||||
selectors: {
|
selectors: {
|
||||||
'&.full-screen': {
|
'&.full-screen': {
|
||||||
padding: '0 5%',
|
|
||||||
vars: {
|
vars: {
|
||||||
'--affine-editor-width': '100%',
|
'--affine-editor-width': '90%',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export const switchCheckedStyle = style({
|
|||||||
selectors: {
|
selectors: {
|
||||||
'&:before': {
|
'&:before': {
|
||||||
background: 'var(--affine-toggle-circle-background-color)',
|
background: 'var(--affine-toggle-circle-background-color)',
|
||||||
transform: 'translate(100%,-50%)',
|
transform: 'translate(21px,-50%)',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user