Skip to content

Commit 58e15f0

Browse files
committed
fix
1 parent 2cf01c1 commit 58e15f0

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

apps/www/src/app/(blocks)/blocks/playground/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function PlaygroundPage() {
1818
className={cn('themes-wrapper bg-background', block.container?.className)}
1919
>
2020
{/* <BlockWrapper block={block}> */}
21-
<PlaygroundDemo className="h-dvh [&_[data-slate-editor]]:h-[calc(100dvh-37px)]" />
21+
<PlaygroundDemo className="h-dvh" />
2222
{/* {chunks?.map((chunk, index) => (
2323
<BlockChunk
2424
key={chunk.name}

apps/www/src/components/playground-preview.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function PlaygroundPreview({
7373
>
7474
<div className="chunk-mode relative z-20 w-full bg-background">
7575
<ThemeWrapper>
76-
<PlaygroundDemo className="max-h-[655px]" />
76+
<PlaygroundDemo className="h-[650px]" />
7777
</ThemeWrapper>
7878
</div>
7979

apps/www/src/registry/default/example/playground-demo.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,10 @@ export default function PlaygroundDemo({
9999
return (
100100
<DemoId id={id}>
101101
<Plate editor={editor}>
102-
<EditorContainer
103-
className={cn(id ? 'h-[500px]' : 'h-[650px]', className)}
104-
>
102+
<EditorContainer className={cn(id && 'h-[500px]', className)}>
105103
<Editor
106104
variant="demo"
107-
className={cn(!id && 'pb-[20vh]', id && 'h-[463px] pb-8')}
105+
className={cn(id ? 'h-[calc(100%-37px)] pb-8' : 'pb-[20vh]')}
108106
spellCheck={false}
109107
/>
110108
</EditorContainer>

apps/www/src/registry/default/plate-ui/editor.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ const editorVariants = cva(
7979
aiChat:
8080
'max-h-[min(70vh,320px)] w-full max-w-[700px] overflow-y-auto px-3 py-2 text-sm',
8181
default:
82-
'min-h-full w-full px-16 pb-72 pt-4 text-base sm:px-[max(64px,calc(50%-350px))]',
83-
demo: 'h-[613px] w-full px-16 pb-72 pt-4 text-base sm:px-[max(64px,calc(50%-350px))]',
84-
fullWidth: 'min-h-full w-full px-16 pb-72 pt-4 text-base sm:px-24',
82+
'size-full px-16 pb-72 pt-4 text-base sm:px-[max(64px,calc(50%-350px))]',
83+
demo: 'size-full px-16 pb-72 pt-4 text-base sm:px-[max(64px,calc(50%-350px))]',
84+
fullWidth: 'size-full px-16 pb-72 pt-4 text-base sm:px-24',
8585
},
8686
},
8787
}

0 commit comments

Comments
 (0)