🐛(frontend) fix collaboration cursor

- The collaboration slider is not fully shown when a user is at the very
top of the document
This commit is contained in:
Nathan Panchout
2025-01-17 09:31:25 +01:00
committed by Anthony LC
parent 282200ac3d
commit e85b07021e
2 changed files with 12 additions and 3 deletions

View File

@@ -176,7 +176,11 @@ export const BlockNoteEditor = ({ doc, provider }: BlockNoteEditorProps) => {
}, [setEditor, editor]); }, [setEditor, editor]);
return ( return (
<Box $css={cssEditor(readOnly)}> <Box
$padding={{ top: 'md' }}
$background="white"
$css={cssEditor(readOnly)}
>
{errorAttachment && ( {errorAttachment && (
<Box $margin={{ bottom: 'big' }}> <Box $margin={{ bottom: 'big' }}>
<TextErrors <TextErrors

View File

@@ -64,7 +64,12 @@ export const DocHeader = ({ doc }: DocHeaderProps) => {
</Text> </Text>
</Box> </Box>
)} )}
<Box $direction="row" $align="center" $width="100%"> <Box
$direction="row"
$align="center"
$width="100%"
$padding={{ bottom: 'xs' }}
>
<Box <Box
$direction="row" $direction="row"
$justify="space-between" $justify="space-between"
@@ -98,7 +103,7 @@ export const DocHeader = ({ doc }: DocHeaderProps) => {
<DocToolBox doc={doc} /> <DocToolBox doc={doc} />
</Box> </Box>
</Box> </Box>
<HorizontalSeparator $withPadding={true} /> <HorizontalSeparator $withPadding={false} />
</Box> </Box>
</> </>
); );