From cdac2504156f5b167d33abe8d28bfbf28f8f340d Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Thu, 28 Sep 2023 10:06:25 +0200 Subject: [PATCH] fix grafixi --- .../MP-TAB/Components/Layout/MainLayout.razor | 57 +++++++++++++++++-- .../Components/Layout/MainLayout.razor.css | 11 +++- MP-TAB/MP-TAB/Components/Layout/NavMenu.razor | 37 ++++-------- .../Components/Layout/NavMenu.razor.css | 23 ++++---- 4 files changed, 84 insertions(+), 44 deletions(-) diff --git a/MP-TAB/MP-TAB/Components/Layout/MainLayout.razor b/MP-TAB/MP-TAB/Components/Layout/MainLayout.razor index 04f55558..9c6494c5 100644 --- a/MP-TAB/MP-TAB/Components/Layout/MainLayout.razor +++ b/MP-TAB/MP-TAB/Components/Layout/MainLayout.razor @@ -1,19 +1,41 @@ @inherits LayoutComponentBase +@inject OprFiltData MDataService
-
+
+
+ + Username + + [999] +
+
MapoTAB2
+
+ @*
*@ +
+
+ +
+
+
+
+
+
+
-
- @Body +
+
+ @Body +
+
-
@@ -21,3 +43,26 @@ Reload 🗙
+ + +@code { + /// + /// Elenco items da menù per pagina corrente... + /// + protected List CurrMenuItems { get; set; } = new List(); + /// + /// Livello corrente del menu + /// + protected string CurrLevel = "T2H"; + + /// + /// Init struttura dati + /// + /// + protected override async Task OnInitializedAsync() + { + await Task.Delay(1); + CurrMenuItems = await MDataService.ListLinkFilt(CurrLevel); + // return base.OnInitializedAsync(); + } +} \ No newline at end of file diff --git a/MP-TAB/MP-TAB/Components/Layout/MainLayout.razor.css b/MP-TAB/MP-TAB/Components/Layout/MainLayout.razor.css index 0b4fcdaa..130addbf 100644 --- a/MP-TAB/MP-TAB/Components/Layout/MainLayout.razor.css +++ b/MP-TAB/MP-TAB/Components/Layout/MainLayout.razor.css @@ -9,7 +9,8 @@ main { } .sidebar { - background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%); + /*background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);*/ + padding: 0 10px 0 0; } .top-row { @@ -23,7 +24,7 @@ main { .top-row ::deep a, .top-row ::deep .btn-link { white-space: nowrap; - margin-left: 1.5rem; + /*margin-left: 1.5rem;*/ text-decoration: none; } @@ -35,7 +36,11 @@ main { overflow: hidden; text-overflow: ellipsis; } - +@media (min-width: 640.98px) { + .slideMen:not(.auth) { + display: none; + } +} @media (max-width: 640.98px) { .top-row:not(.auth) { display: none; diff --git a/MP-TAB/MP-TAB/Components/Layout/NavMenu.razor b/MP-TAB/MP-TAB/Components/Layout/NavMenu.razor index 66f83cbd..0e1b56d4 100644 --- a/MP-TAB/MP-TAB/Components/Layout/NavMenu.razor +++ b/MP-TAB/MP-TAB/Components/Layout/NavMenu.razor @@ -1,29 +1,32 @@ @inject OprFiltData MDataService @*
*@ -
+@*
- +
- - *@