Note editor/Sidebar styling tweaks
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { Check, Plus, Sun, Moon } from "lucide-react"
|
import { Check, Plus, Sun, Moon } from "lucide-react"
|
||||||
|
|
||||||
import { Sidebar, SidebarContent, SidebarHeader, SidebarFooter, SidebarTrigger } from "@/components/ui/sidebar"
|
import { Sidebar, SidebarContent, SidebarHeader, SidebarFooter } from "@/components/ui/sidebar"
|
||||||
import { Button } from "@/components/ui/button"
|
import { Button } from "@/components/ui/button"
|
||||||
import { ScrollArea } from "@/components/ui/scroll-area"
|
import { ScrollArea } from "@/components/ui/scroll-area"
|
||||||
import { Input } from "@/components/ui/input"
|
import { Input } from "@/components/ui/input"
|
||||||
|
|||||||
@@ -15,13 +15,13 @@ function NoteEditor() {
|
|||||||
|
|
||||||
if (!currentNote) return (
|
if (!currentNote) return (
|
||||||
<div className="p-6">
|
<div className="p-6">
|
||||||
<p>Select a note</p>
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6">
|
<div className="p-6 w-full max-w-7/10 mx-auto">
|
||||||
<h1>{ currentNote.title }</h1>
|
<div className="h-16" role="spacer"></div>
|
||||||
|
<h1 className="text-4xl font-medium mb-4">{ currentNote.title }</h1>
|
||||||
<BlockNoteView editor={editor as any} theme={theme} />
|
<BlockNoteView editor={editor as any} theme={theme} />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ function SidebarTrigger({
|
|||||||
data-slot="sidebar-trigger"
|
data-slot="sidebar-trigger"
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
size="icon"
|
size="icon"
|
||||||
className={cn("size-7", className)}
|
className={cn("size-10 top-2 left-2", className)}
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
onClick?.(event)
|
onClick?.(event)
|
||||||
toggleSidebar()
|
toggleSidebar()
|
||||||
|
|||||||
@@ -126,6 +126,10 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bn-editor {
|
||||||
|
padding-inline: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
@layer base {
|
@layer base {
|
||||||
* {
|
* {
|
||||||
@apply border-border outline-ring/50;
|
@apply border-border outline-ring/50;
|
||||||
|
|||||||
Reference in New Issue
Block a user