💄(app-impress) move title document to the top

Move teh title document to the top of the pad editor.
We let the white card only for the pad content.
This commit is contained in:
Anthony LC
2024-05-14 10:43:06 +02:00
committed by Anthony LC
parent a26ee3b868
commit f88d625622

View File

@@ -1,8 +1,8 @@
import React from 'react';
import { Card, Text } from '@/components';
import { Box, Card, Text } from '@/components';
import { PadToolBox } from '@/features/pads/pad-tools';
import { PadToolBox } from '../../pad-tools';
import { Pad } from '../types';
import { BlockNoteEditor } from './BlockNoteEditor';
@@ -14,16 +14,18 @@ interface PadEditorProps {
export const PadEditor = ({ pad }: PadEditorProps) => {
return (
<>
<PadToolBox pad={pad} />
<Card
$margin={{ top: 'none', all: 'big' }}
$padding="big"
$css="flex:1;"
$overflow="auto"
<Box
$direction="row"
className="ml-b"
$align="center"
$justify="space-between"
>
<Text as="h2" $align="center">
{pad.title}
</Text>
<PadToolBox pad={pad} />
</Box>
<Card className="m-b p-b" $css="margin-top:0;flex:1;" $overflow="auto">
<BlockNoteEditor pad={pad} />
</Card>
</>