From 7cba5c9f394c374531db85c40754c630be9c3350 Mon Sep 17 00:00:00 2001 From: Francois Smith <90509905+francoissmith@users.noreply.github.com> Date: Fri, 27 Oct 2023 00:18:05 +0200 Subject: [PATCH] Yaaaaayyyy --- src/apps/blazor-app/Components/Dashboard/Appliances.razor | 4 +++- src/apps/blazor-app/wwwroot/css/app.css | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/apps/blazor-app/Components/Dashboard/Appliances.razor b/src/apps/blazor-app/Components/Dashboard/Appliances.razor index 6ffecfe0..8fda546f 100644 --- a/src/apps/blazor-app/Components/Dashboard/Appliances.razor +++ b/src/apps/blazor-app/Components/Dashboard/Appliances.razor @@ -47,7 +47,7 @@ } @for (int j = 0; j < noOfAppliancesInView && j + appliancesPage*noOfAppliancesInView < allAppliances.Count; j++) { - KeyValuePair> app = allAppliances.ElementAt(j + appliancesPage*5); + KeyValuePair> app = allAppliances.ElementAt(j + appliancesPage*noOfAppliancesInView); string iconName = app.Key + ".svg"; int count = 0; List tempAppliances = app.Value; @@ -405,6 +405,7 @@ } private async void IncrementAppliancePage(){ + Console.WriteLine("Incrementing: " + appliancesPage + " " + applianceNumberOfPage + " " + noOfAppliancesInView); applianceAnimation = "appliance-slide-out-left"; StateHasChanged(); await Task.Delay(100); @@ -417,6 +418,7 @@ StateHasChanged(); } private async void DecrementAppliancePage(){ + Console.WriteLine("Decrementing: " + appliancesPage + " " + applianceNumberOfPage + " " + noOfAppliancesInView); applianceAnimation = "appliance-slide-out-right"; StateHasChanged(); await Task.Delay(100); diff --git a/src/apps/blazor-app/wwwroot/css/app.css b/src/apps/blazor-app/wwwroot/css/app.css index 5f0310f7..848dcd86 100644 --- a/src/apps/blazor-app/wwwroot/css/app.css +++ b/src/apps/blazor-app/wwwroot/css/app.css @@ -895,10 +895,6 @@ video { top: 100%; } -.right-96 { - right: 24rem; -} - .isolate { isolation: isolate; }