Skip to content

Commit 6c69c2d

Browse files
Tom BrewerTom Brewer
authored andcommitted
chore(ui): use consistent sizes for theme cards in settings
1 parent de8276a commit 6c69c2d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Apollo.Components/Settings/SettingsDialog.razor

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,22 +69,22 @@
6969
</SettingsSectionDisplay>
7070

7171
<SettingsSectionDisplay Id="section-themes" Title="Built-in Themes">
72-
<MudToggleGroup T="string"
72+
<MudToggleGroup T="string"
7373
Value="@GetCurrentThemeValue()"
7474
ValueChanged="@OnThemeSelected"
75-
Class="mud-width-full"
75+
Class="mud-width-full"
7676
SelectedClass="box-shadow-primary"
77-
Style="border:none!important;">
77+
Style="border:none!important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;">
7878
<MudToggleItem Value="@("Apollo")" Class="rounded">
79-
<ThemeCard
79+
<ThemeCard
8080
Title="Apollo"
8181
Description="Solar-inspired with golden accents"
8282
ChipText="Default"
8383
IsSelected="@(Settings.CurrentTheme.Name == "Apollo" && !Settings.IsUsingCustomTheme)"
8484
CardTheme="@ApolloTheme.Instance.Theme.BaseTheme"/>
8585
</MudToggleItem>
8686
<MudToggleItem Value="@("Stealth")" Class="rounded">
87-
<ThemeCard
87+
<ThemeCard
8888
Title="Stealth"
8989
Description="Minimalist flat design"
9090
ChipText="Stealth"
@@ -130,12 +130,12 @@
130130
}
131131
else
132132
{
133-
<MudToggleGroup T="string"
133+
<MudToggleGroup T="string"
134134
Value="@GetCurrentThemeValue()"
135135
ValueChanged="@OnThemeSelected"
136-
Class="mud-width-full"
136+
Class="mud-width-full"
137137
SelectedClass="box-shadow-primary"
138-
Style="border:none!important;">
138+
Style="border:none!important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;">
139139
@foreach (var customTheme in Settings.CustomThemes.Themes.Values)
140140
{
141141
<MudToggleItem Value="@($"custom:{customTheme.Data.Id}")" Class="rounded">

0 commit comments

Comments
 (0)