diff --git a/FootballBlazorApp/Components/FixturesAndResultsByDayComponent.razor b/FootballBlazorApp/Components/FixturesAndResultsByDayComponent.razor
index ca67654..c73d56c 100644
--- a/FootballBlazorApp/Components/FixturesAndResultsByDayComponent.razor
+++ b/FootballBlazorApp/Components/FixturesAndResultsByDayComponent.razor
@@ -1,12 +1,21 @@
@if (FixturesAndResultsExist)
{
- @switch (ComponentSource)
+ switch (ComponentSource)
{
case Enums.ComponentSource.FixturesAndResults:
case Enums.ComponentSource.Team:
-
- @FixtureDate.ToString("dddd dd MMMM yyyy")
-
+ @if (!IsSmall)
+ {
+
+ @FixtureDate.ToString("dddd dd MMMM yyyy")
+
+ }
+ else
+ {
+
+ @FixtureDate.ToString("dddd dd MMMM yyyy")
+
+ }
break;
case Enums.ComponentSource.FixturesByGroup:
diff --git a/FootballBlazorApp/Components/FixturesAndResultsByDayComponent.razor.cs b/FootballBlazorApp/Components/FixturesAndResultsByDayComponent.razor.cs
index e22a229..72eb438 100644
--- a/FootballBlazorApp/Components/FixturesAndResultsByDayComponent.razor.cs
+++ b/FootballBlazorApp/Components/FixturesAndResultsByDayComponent.razor.cs
@@ -21,8 +21,8 @@ public partial class FixturesAndResultsByDayComponent
private string TableStyle => ComponentSource == Enums.ComponentSource.FixturesAndResults && !IsSmall
- ? "width : 670px; margin-bottom: 20px;"
- : "width : 480px; margin-bottom: 20px;";
+ ? "width: 670px; margin-bottom: 20px;"
+ : "width: 340px; margin-bottom: 20px;";
private List FixturesAndResults;
diff --git a/FootballBlazorApp/Components/FixturesAndResultsByGroupOrLeagueTable.razor b/FootballBlazorApp/Components/FixturesAndResultsByGroupOrLeagueTable.razor
index 2df407a..bbf69f2 100644
--- a/FootballBlazorApp/Components/FixturesAndResultsByGroupOrLeagueTable.razor
+++ b/FootballBlazorApp/Components/FixturesAndResultsByGroupOrLeagueTable.razor
@@ -2,7 +2,7 @@
{
Fixtures
-
+
@foreach (var fixtureandResultByDay in FixturesAndResultsByGroupOrLeagueTableModel.FixturesAndResultsByDays)
{
@@ -10,10 +10,4 @@
}
-@code {
- private bool FixturesAndResultsExist => FixturesAndResultsByGroupOrLeagueTableModel != null
- && (FixturesAndResultsByGroupOrLeagueTableModel.FixturesAndResults?.Count ?? 0) > 0;
-
- [Parameter]
- public FootballShared.Models.FixturesAndResultsByGroupOrLeagueTable FixturesAndResultsByGroupOrLeagueTableModel { get; set; }
-}
+
\ No newline at end of file
diff --git a/FootballBlazorApp/Components/FixturesAndResultsByGroupOrLeagueTable.razor.cs b/FootballBlazorApp/Components/FixturesAndResultsByGroupOrLeagueTable.razor.cs
new file mode 100644
index 0000000..24b0d82
--- /dev/null
+++ b/FootballBlazorApp/Components/FixturesAndResultsByGroupOrLeagueTable.razor.cs
@@ -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;";
+}