From e5edc372fe1d994d4d66d1e2acdac4a70203222c Mon Sep 17 00:00:00 2001 From: Michal Vrba Date: Fri, 30 Jan 2026 18:38:21 +0100 Subject: [PATCH] Add "New Document" button and Ctrl+N shortcut Added a "New Document" button to the editor's top bar with distinct styling. Implemented Ctrl+N/Cmd+N keyboard shortcut to create a new document. Prompt user for confirmation if there are unsaved changes. Updated CSS to style the new button and integrated it into button style rules. --- Notemark/Components/Pages/Editor.razor | 40 ++++++++++++++++++++++ Notemark/Components/Pages/Editor.razor.css | 16 ++++++++- 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/Notemark/Components/Pages/Editor.razor b/Notemark/Components/Pages/Editor.razor index 77f0105..977ef96 100644 --- a/Notemark/Components/Pages/Editor.razor +++ b/Notemark/Components/Pages/Editor.razor @@ -13,6 +13,9 @@
+