fix(web): remove edgeless mode padding (#2061)

This commit is contained in:
zuomeng wang
2023-04-21 17:56:29 +08:00
committed by GitHub
parent 9ec6768272
commit acc5afdd4f
3 changed files with 21 additions and 1 deletions

View File

@@ -89,10 +89,13 @@ const BlockSuiteEditorImpl = (props: EditorProps): ReactElement => {
container.removeChild(editor);
};
}, [editor, page]);
// issue: https://github.com/toeverything/AFFiNE/issues/2004
const className = `editor-wrapper ${editor.mode}-mode`;
return (
<div
data-testid={`editor-${props.page.id}`}
className="editor-wrapper"
className={className}
style={props.style}
ref={ref}
/>

View File

@@ -194,6 +194,11 @@ input[type='number']::-webkit-outer-spin-button {
padding: 0 2rem;
}
/* issue: https://github.com/toeverything/AFFiNE/issues/2004 */
.editor-wrapper.edgeless-mode {
padding: 0;
}
.affine-default-page-block-title-container {
margin-top: 40px;
margin-bottom: 40px;
@@ -222,4 +227,9 @@ affine-block-hub {
height: 100%;
padding: 0 0.75rem;
}
/* issue: https://github.com/toeverything/AFFiNE/issues/2004 */
.editor-wrapper.edgeless-mode {
padding: 0;
}
}