refactor (v2): better arch

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-06-07 21:19:54 +02:00
parent 0753f3d256
commit 839308ec19
166 changed files with 8553 additions and 884 deletions

View File

@@ -165,14 +165,14 @@ export function NoteCard({ note }: NoteCardProps) {
</Card>
<Dialog open={editing} onOpenChange={setEditing}>
<DialogContent className="max-w-3xl max-h-[85vh] flex flex-col p-6 gap-0 overflow-hidden">
<DialogContent className="max-w-3xl max-h-[85dvh] flex flex-col p-6 gap-0 overflow-hidden">
<DialogHeader className="pb-4 shrink-0">
<DialogTitle>{t("Edit Note")}</DialogTitle>
</DialogHeader>
<div className="flex-1 min-h-0 overflow-y-auto -mx-6 px-6">
<NoteForm
defaultValues={{
title: note.title,
title: note.title ?? undefined,
content: note.content,
is_pinned: note.is_pinned,
color: note.color,
@@ -189,7 +189,7 @@ export function NoteCard({ note }: NoteCardProps) {
open={historyOpen}
onOpenChange={setHistoryOpen}
noteId={note.id}
noteTitle={note.title}
noteTitle={note.title ?? ""}
/>
<NoteViewDialog