From 2ce5cf359d2d1c73b1a4ac390c4707dc02f54536 Mon Sep 17 00:00:00 2001 From: Michal Vrba Date: Fri, 30 Jan 2026 17:58:06 +0100 Subject: [PATCH] Add draggable splitter for resizable editor/preview panes Implemented a vertical splitter between the editor and preview panes, allowing users to resize them interactively. The split ratio is persisted in localStorage and clamped for usability. Added JavaScript interop for drag handling, updated styles for the splitter, and improved the preview toggle button with an eye icon. Layout remains responsive for mobile devices. --- Notemark/Components/Pages/Editor.razor | 87 +++++++++++++++++++++- Notemark/Components/Pages/Editor.razor.css | 29 ++++++++ Notemark/wwwroot/js/theme.js | 57 ++++++++++++++ 3 files changed, 169 insertions(+), 4 deletions(-) diff --git a/Notemark/Components/Pages/Editor.razor b/Notemark/Components/Pages/Editor.razor index 6aa804d..77f0105 100644 --- a/Notemark/Components/Pages/Editor.razor +++ b/Notemark/Components/Pages/Editor.razor @@ -15,7 +15,7 @@
@@ -64,9 +64,9 @@ -
+
-
+