-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decrease Fixture List size on a Small Screen
Decreased the Fixture List size on a Small Screen
- Loading branch information
John Tomlinson
committed
Sep 19, 2024
1 parent
484eed5
commit 7d47767
Showing
4 changed files
with
35 additions
and
14 deletions.
There are no files selected for viewing
17 changes: 13 additions & 4 deletions
17
FootballBlazorApp/Components/FixturesAndResultsByDayComponent.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
FootballBlazorApp/Components/FixturesAndResultsByGroupOrLeagueTable.razor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Microsoft.AspNetCore.Components; | ||
|
||
namespace FootballBlazorApp.Components; | ||
|
||
public partial class FixturesAndResultsByGroupOrLeagueTable | ||
{ | ||
private bool FixturesAndResultsExist => FixturesAndResultsByGroupOrLeagueTableModel != null | ||
&& (FixturesAndResultsByGroupOrLeagueTableModel.FixturesAndResults?.Count ?? 0) > 0; | ||
|
||
[Parameter] | ||
public FootballShared.Models.FixturesAndResultsByGroupOrLeagueTable FixturesAndResultsByGroupOrLeagueTableModel { get; set; } | ||
|
||
private bool IsSmall = false; | ||
|
||
private string TableStyle => !IsSmall | ||
? "width: 450px; margin-bottom: 20px;" | ||
: "width: 340px; margin-bottom: 20px;"; | ||
} |