diff --git a/src/App.css b/src/App.css index 724c67b6..b6e63a44 100644 --- a/src/App.css +++ b/src/App.css @@ -37,6 +37,8 @@ .app__editor { flex: 1; min-width: 0; + min-height: 0; + overflow: hidden; display: flex; flex-direction: column; } diff --git a/src/components/Editor.css b/src/components/Editor.css index 269cda19..dfe764b6 100644 --- a/src/components/Editor.css +++ b/src/components/Editor.css @@ -17,7 +17,8 @@ /* BlockNote container */ .editor__blocknote-container { flex: 1; - overflow: auto; + min-height: 0; + overflow-y: auto; display: flex; justify-content: center; } diff --git a/src/components/Editor.tsx b/src/components/Editor.tsx index 371cab62..f08cbe91 100644 --- a/src/components/Editor.tsx +++ b/src/components/Editor.tsx @@ -9,7 +9,6 @@ import { Inspector, type FrontmatterValue } from './Inspector' import { ResizeHandle } from './ResizeHandle' import { useEditorTheme } from '../hooks/useTheme' import { cn } from '@/lib/utils' -import { Button } from '@/components/ui/button' import { X } from 'lucide-react' import { Plus, @@ -364,16 +363,6 @@ export function Editor({ WebkitAppRegion: 'no-drag', } as React.CSSProperties} > - {showDiffToggle && ( - - )} - + {showDiffToggle && ( + + )} + {!showDiffToggle && ( + + )}