From 736bc9c9bd4ee116b929bd7760d4822ca7338507 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 9 Jul 2025 19:30:14 +0300 Subject: [PATCH] chore(insert_note): improve layout slightly --- apps/client/src/services/note_types.ts | 10 +++++----- apps/client/src/stylesheets/style.css | 5 +++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/apps/client/src/services/note_types.ts b/apps/client/src/services/note_types.ts index dc03cf594..a3f356e14 100644 --- a/apps/client/src/services/note_types.ts +++ b/apps/client/src/services/note_types.ts @@ -154,15 +154,15 @@ async function getBuiltInTemplates(title: string | null, command: TreeCommandNam return []; } - const items: MenuItem[] = [ - SEPARATOR - ]; - + const items: MenuItem[] = []; if (title) { items.push({ title: title, - enabled: false + enabled: false, + uiIcon: "bx bx-empty" }); + } else { + items.push(SEPARATOR); } for (const templateNote of childNotes) { diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css index d44fc5b11..54b9f074e 100644 --- a/apps/client/src/stylesheets/style.css +++ b/apps/client/src/stylesheets/style.css @@ -337,6 +337,11 @@ button kbd { --bs-dropdown-link-active-bg: var(--active-item-background-color) !important; } +.dropdown-menu .dropdown-divider { + break-before: avoid; + break-after: avoid; +} + body.desktop .dropdown-menu { border: 1px solid var(--dropdown-border-color); box-shadow: 0px 10px 20px rgba(0, 0, 0, var(--dropdown-shadow-opacity));