Fixed outline problem

This commit is contained in:
2025-11-13 21:36:45 +01:00
parent 2c935d4a83
commit fb116d1b68
2 changed files with 19 additions and 12 deletions
+5
View File
@@ -122,3 +122,8 @@
@apply bg-background text-foreground; @apply bg-background text-foreground;
} }
} }
:focus {
outline: none !important;
box-shadow: none !important;
}
+14 -12
View File
@@ -19,17 +19,19 @@ export default function DocView({
}, [editor]); }, [editor]);
return ( return (
<BlockNoteView <div className="h-full w-3xl mx-auto bg-accent/20 rounded-2xl px-4 py-2 docs-view" onClick={() => editor.focus()}>
defaultValue={doc} <BlockNoteView
editor={editor} defaultValue={doc}
shadCNComponents={{}} editor={editor}
className="w-full h-svh px-6 mt-4" shadCNComponents={{}}
onChange={async () => { className="w-full focus:outline-none focus:ring-0 appearance-none"
if (editor) { onChange={async () => {
console.log(editor.blocksToMarkdownLossy(editor.document)); if (editor) {
setDoc(editor.blocksToMarkdownLossy(editor.document)); console.log(editor.blocksToMarkdownLossy(editor.document));
} setDoc(editor.blocksToMarkdownLossy(editor.document));
}} }
/> }}
/>
</div>
); );
} }