feat: hide page info in public pages (#4365)

This commit is contained in:
3720
2023-09-15 02:43:55 +08:00
committed by GitHub
parent 465098cc9a
commit 5418d3048e
2 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
import { style } from '@vanilla-extract/css';
import { globalStyle, style } from '@vanilla-extract/css';
export const pluginContainer = style({
height: '100%',
@@ -16,3 +16,6 @@ export const editor = style({
},
},
});
globalStyle('.is-public-page affine-page-meta-data', {
display: 'none',
});

View File

@@ -80,6 +80,7 @@ const EditorWrapper = memo(function EditorWrapper({
<Editor
className={clsx(styles.editor, {
'full-screen': appSettings.fullWidthLayout,
'is-public-page': isPublic,
})}
style={
{