Skip to content

Commit 0fd16b4

Browse files
committed
💄(frontend) add spacing bottom on editor
We add spacing bottom on editor to avoid the last editing line being to close to the bottom.
1 parent fbb2799 commit 0fd16b4

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/frontend/apps/impress/src/features/docs/doc-editor/components/DocEditor.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { css } from 'styled-components';
55
import * as Y from 'yjs';
66

77
import { Box, Text, TextErrors } from '@/components';
8-
import { useCunninghamTheme } from '@/cunningham';
98
import { DocHeader, DocVersionHeader } from '@/docs/doc-header/';
109
import {
1110
Doc,
@@ -26,9 +25,6 @@ interface DocEditorProps {
2625
export const DocEditor = ({ doc, versionId }: DocEditorProps) => {
2726
const { isDesktop } = useResponsiveStore();
2827
const isVersion = !!versionId && typeof versionId === 'string';
29-
30-
const { colorsTokens } = useCunninghamTheme();
31-
3228
const { provider } = useProviderStore();
3329

3430
if (!provider) {
@@ -66,7 +62,6 @@ export const DocEditor = ({ doc, versionId }: DocEditorProps) => {
6662
</Box>
6763

6864
<Box
69-
$background={colorsTokens['primary-bg']}
7065
$direction="row"
7166
$width="100%"
7267
$css="overflow-x: clip; flex: 1;"

src/frontend/apps/impress/src/features/docs/doc-editor/styles.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export const cssEditor = (readonly: boolean) => css`
55
& > .bn-container,
66
& .ProseMirror {
77
height: 100%;
8+
padding-bottom: 2rem;
89
910
img.bn-visual-media[src*='-unsafe'] {
1011
pointer-events: none;

0 commit comments

Comments
 (0)