🐛(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:
committed by
Anthony LC
parent
282200ac3d
commit
e85b07021e
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user