Skip to content

Commit e85b070

Browse files
PanchoutNathanAntoLC
authored andcommitted
🐛(frontend) fix collaboration cursor
- The collaboration slider is not fully shown when a user is at the very top of the document
1 parent 282200a commit e85b070

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,11 @@ export const BlockNoteEditor = ({ doc, provider }: BlockNoteEditorProps) => {
176176
}, [setEditor, editor]);
177177

178178
return (
179-
<Box $css={cssEditor(readOnly)}>
179+
<Box
180+
$padding={{ top: 'md' }}
181+
$background="white"
182+
$css={cssEditor(readOnly)}
183+
>
180184
{errorAttachment && (
181185
<Box $margin={{ bottom: 'big' }}>
182186
<TextErrors

src/frontend/apps/impress/src/features/docs/doc-header/components/DocHeader.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,12 @@ export const DocHeader = ({ doc }: DocHeaderProps) => {
6464
</Text>
6565
</Box>
6666
)}
67-
<Box $direction="row" $align="center" $width="100%">
67+
<Box
68+
$direction="row"
69+
$align="center"
70+
$width="100%"
71+
$padding={{ bottom: 'xs' }}
72+
>
6873
<Box
6974
$direction="row"
7075
$justify="space-between"
@@ -98,7 +103,7 @@ export const DocHeader = ({ doc }: DocHeaderProps) => {
98103
<DocToolBox doc={doc} />
99104
</Box>
100105
</Box>
101-
<HorizontalSeparator $withPadding={true} />
106+
<HorizontalSeparator $withPadding={false} />
102107
</Box>
103108
</>
104109
);

0 commit comments

Comments
 (0)