From 9c980d45a3f1af4a6756ea0a13cb7dcacc5470a6 Mon Sep 17 00:00:00 2001 From: Ty Davis Date: Fri, 14 Aug 2026 09:59:48 -0600 Subject: [PATCH] Added a setting to force the timers to fill the available screen space and overflow the table when necessary --- Framework/TimerSettings.cs | 2 + Pages/Home.razor | 147 ++++++++++++++++++------------------- wwwroot/css/app.css | 53 ++++++++++++- 3 files changed, 125 insertions(+), 77 deletions(-) diff --git a/Framework/TimerSettings.cs b/Framework/TimerSettings.cs index 57034f4..af55554 100644 --- a/Framework/TimerSettings.cs +++ b/Framework/TimerSettings.cs @@ -14,6 +14,8 @@ public class TimerSettings public bool DisplayTrending { get; set; } = true; + public bool UseScrollableSplitPanelGrid { get; set; } = false; + public Decimal TrendingSplitDistance { get; set; } = 400; public Decimal TrendingTotalDistance { get; set; } = 1600; diff --git a/Pages/Home.razor b/Pages/Home.razor index b100a87..2715e8f 100644 --- a/Pages/Home.razor +++ b/Pages/Home.razor @@ -8,76 +8,71 @@ @inject TimerStateService timerState RunXC Splits -
-
- - @foreach (var timer in timers) - { - - -
-
@timer.Name
-
-
@timer.Stopwatch.Elapsed.ToString(timeFormat)
-
-
-
-
-
@DisplayTimerNum(timer.Splits.Count + 1)
-
@timer.ElapsedSinceLast.ToString(timeFormat)
-
-
- @if (settings.DisplayTrending && timer.Splits != null && timer.Splits.Any()) - { -
-
-
Trending
-
@settings.GetTrending(timer.Splits.Count, timer.Splits.Last().Ellapsed, timer.Splits.Last().SplitTime).ToString(timeFormat)
-
- } - @for (var s = timer.Splits.Count; s > 0; s--) - { - var split = timer.Splits[s - 1]; -
-
@DisplayTimerNum(s)
-
@split.SplitTime.ToString(timeFormat)
-
@split.Ellapsed.ToString(timeFormat)
-
- } - -
+
+
+ @foreach (var timer in timers) + { + +
+
@timer.Name
+
+
@timer.Stopwatch.Elapsed.ToString(timeFormat)
+
+
+
+
+
@DisplayTimerNum(timer.Splits.Count + 1)
+
@timer.ElapsedSinceLast.ToString(timeFormat)
+
- -
-
-
- @if (@timer.Stopwatch.IsRunning) - { - - } - else - { - - } + @if (settings.DisplayTrending && timer.Splits != null && timer.Splits.Any()) + { +
+
+
Trending
+
@settings.GetTrending(timer.Splits.Count, timer.Splits.Last().Ellapsed, timer.Splits.Last().SplitTime).ToString(timeFormat)
-
+ } + @for (var s = timer.Splits.Count; s > 0; s--) + { + var split = timer.Splits[s - 1]; +
+
@DisplayTimerNum(s)
+
@split.SplitTime.ToString(timeFormat)
+
@split.Ellapsed.ToString(timeFormat)
-
- @if (@timer.Stopwatch.IsRunning) - { - Lap - } - else - { - - } -
-
- - - } - + } + +
+
+
+
+
+ @if (@timer.Stopwatch.IsRunning) + { + + } + else + { + + } +
+
+
+
+ @if (@timer.Stopwatch.IsRunning) + { + Lap + } + else + { + + } +
+
+ + }
@@ -93,6 +88,9 @@
+
+ Version: @version +
@@ -112,6 +110,9 @@
+
+ +
@if (settings.DisplayTrending) {
@@ -145,20 +146,11 @@
-
- Version: @version -
-