diff --git a/LiftLog.Ui/Pages/StatsPage.razor b/LiftLog.Ui/Pages/StatsPage.razor index 19f6f918..12d0ac2e 100644 --- a/LiftLog.Ui/Pages/StatsPage.razor +++ b/LiftLog.Ui/Pages/StatsPage.razor @@ -77,7 +77,7 @@ else if (!StatsState.Value.IsLoading && StatsState.Value.OverallView is not null - + @if(SearchTerm != "" && !UnpinnedExercisesToShow.Any()) diff --git a/LiftLog.Ui/Shared/Presentation/CardList.razor b/LiftLog.Ui/Shared/Presentation/CardList.razor index bbbd0a57..9edb626f 100644 --- a/LiftLog.Ui/Shared/Presentation/CardList.razor +++ b/LiftLog.Ui/Shared/Presentation/CardList.razor @@ -1,9 +1,13 @@ @typeparam TItem
+ @{ + var index = 0; + } @foreach (var item in Items) { OnLongPress.InvokeAsync(item) : default!) @@ -30,6 +34,8 @@ [Parameter] public Card.CardType CardType { get; set; } = Card.CardType.Outlined; + [Parameter] public Func? KeySelector { get; set; } + [Parameter(CaptureUnmatchedValues = true)] public Dictionary? AdditionalAttributes { get; set; } }