From b75e7d730cf5b4bbc98e88a959daa91b9a023c79 Mon Sep 17 00:00:00 2001 From: OlgunR Date: Thu, 30 Apr 2026 15:37:04 +0200 Subject: [PATCH] Modernize sidebar with DxTreeView and new responsive styles Refactor NavMenu to use DevExpress DxTreeView for navigation, replacing the old NavLink-based menu. Update sidebar and navigation row styling to use CSS variables, remove Bootstrap-specific and SVG icon CSS, and add a responsive hamburger menu for small screens. Improve dark mode support and overall maintainability. --- .../Components/Layout/MainLayout.razor.css | 6 +- .../Components/Layout/NavMenu.razor | 54 ++++---- .../Components/Layout/NavMenu.razor.css | 123 +++++------------- 3 files changed, 55 insertions(+), 128 deletions(-) diff --git a/DbFirst.BlazorWebApp/Components/Layout/MainLayout.razor.css b/DbFirst.BlazorWebApp/Components/Layout/MainLayout.razor.css index 633ad86..d3e8fcd 100644 --- a/DbFirst.BlazorWebApp/Components/Layout/MainLayout.razor.css +++ b/DbFirst.BlazorWebApp/Components/Layout/MainLayout.razor.css @@ -18,11 +18,13 @@ main { } .sidebar { - background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%); + background-color: var(--dx-color-surface-container, #f4f4f4); + border-right: 1px solid var(--dx-color-outline-variant, #e0e0e0); } .page.app-dark .sidebar { - background-image: linear-gradient(180deg, #171717 0%, #0f2a46 70%); + background-color: var(--dx-color-surface-container, #1e1e1e); + border-right-color: var(--dx-color-outline-variant, #333); } .top-row { diff --git a/DbFirst.BlazorWebApp/Components/Layout/NavMenu.razor b/DbFirst.BlazorWebApp/Components/Layout/NavMenu.razor index 68901b3..d8f8770 100644 --- a/DbFirst.BlazorWebApp/Components/Layout/NavMenu.razor +++ b/DbFirst.BlazorWebApp/Components/Layout/NavMenu.razor @@ -1,36 +1,26 @@ -