From df83c3acaef61514f20e8652bd6fb2d4d4b00c5b Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Thu, 18 Jun 2026 18:04:23 +0300 Subject: [PATCH] UI: add desktop sidenav collapse/expand with width animation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sidenav width is now driven by signals — 250px expanded, 50px collapsed — with a matching margin-left animation on mat-sidenav-content. The toolbar button toggles between sidebar-close and sidebar-open icons, and the logo is hidden when the rail is collapsed. Desktop-only; mobile overlay sidenav keeps its existing behaviour. --- .../src/app/modules/home/home.component.html | 22 ++++++++++---- .../src/app/modules/home/home.component.scss | 12 ++++++++ ui-ngx/src/app/modules/home/home.component.ts | 29 +++++++++++++++---- 3 files changed, 53 insertions(+), 10 deletions(-) diff --git a/ui-ngx/src/app/modules/home/home.component.html b/ui-ngx/src/app/modules/home/home.component.html index d99a075107..9c9187479b 100644 --- a/ui-ngx/src/app/modules/home/home.component.html +++ b/ui-ngx/src/app/modules/home/home.component.html @@ -17,16 +17,26 @@ --> + [opened]="sidenavOpened && !forceFullscreen" + [style.width]="sidenavWidth()">
- - @if (sidenavDesktop) { - + @if (showLogo()) { + + } + @if (sidenavDesktop()) { + }
@@ -38,7 +48,9 @@ - +