mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
fix(core): unexpected response style of shared page (#6383)
This commit is contained in:
@@ -9,6 +9,18 @@ export const editor = style({
|
||||
},
|
||||
},
|
||||
},
|
||||
'@media': {
|
||||
'screen and (max-width: 800px)': {
|
||||
selectors: {
|
||||
'&.is-public': {
|
||||
vars: {
|
||||
'--affine-editor-width': '100%',
|
||||
'--affine-editor-side-padding': '24px',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
globalStyle(
|
||||
`${editor} .affine-page-viewport:not(.affine-embed-synced-doc-editor)`,
|
||||
|
||||
@@ -104,7 +104,8 @@ const PageDetailEditorMain = memo(function PageDetailEditorMain({
|
||||
return (
|
||||
<Editor
|
||||
className={clsx(styles.editor, {
|
||||
'full-screen': appSettings.fullWidthLayout,
|
||||
'full-screen': !isPublic && appSettings.fullWidthLayout,
|
||||
'is-public': isPublic,
|
||||
})}
|
||||
style={
|
||||
{
|
||||
|
||||
@@ -14,6 +14,12 @@ export const footerContainer = style({
|
||||
paddingLeft: cssVar('editorSidePadding'),
|
||||
paddingRight: cssVar('editorSidePadding'),
|
||||
marginBottom: '200px',
|
||||
'@media': {
|
||||
'screen and (max-width: 800px)': {
|
||||
paddingLeft: '24px',
|
||||
paddingRight: '24px',
|
||||
},
|
||||
},
|
||||
});
|
||||
export const footer = style({
|
||||
display: 'flex',
|
||||
|
||||
Reference in New Issue
Block a user