💄(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:
@@ -1,8 +1,8 @@
|
|||||||
import React from 'react';
|
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 { Pad } from '../types';
|
||||||
|
|
||||||
import { BlockNoteEditor } from './BlockNoteEditor';
|
import { BlockNoteEditor } from './BlockNoteEditor';
|
||||||
@@ -14,16 +14,18 @@ interface PadEditorProps {
|
|||||||
export const PadEditor = ({ pad }: PadEditorProps) => {
|
export const PadEditor = ({ pad }: PadEditorProps) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<PadToolBox pad={pad} />
|
<Box
|
||||||
<Card
|
$direction="row"
|
||||||
$margin={{ top: 'none', all: 'big' }}
|
className="ml-b"
|
||||||
$padding="big"
|
$align="center"
|
||||||
$css="flex:1;"
|
$justify="space-between"
|
||||||
$overflow="auto"
|
|
||||||
>
|
>
|
||||||
<Text as="h2" $align="center">
|
<Text as="h2" $align="center">
|
||||||
{pad.title}
|
{pad.title}
|
||||||
</Text>
|
</Text>
|
||||||
|
<PadToolBox pad={pad} />
|
||||||
|
</Box>
|
||||||
|
<Card className="m-b p-b" $css="margin-top:0;flex:1;" $overflow="auto">
|
||||||
<BlockNoteEditor pad={pad} />
|
<BlockNoteEditor pad={pad} />
|
||||||
</Card>
|
</Card>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user