Improve spacing for Dark Mode button in top row
Wrapped the Dark Mode toggle button in a span with left margin for better separation from the theme combo box. Added a new .btn-gap CSS class to standardize button spacing in the top row.
This commit is contained in:
@@ -13,8 +13,10 @@
|
|||||||
Value="@ThemeState.CurrentThemeName"
|
Value="@ThemeState.CurrentThemeName"
|
||||||
ValueChanged="@((string t) => ThemeState.SetTheme(t))"
|
ValueChanged="@((string t) => ThemeState.SetTheme(t))"
|
||||||
style="width: 130px;" />
|
style="width: 130px;" />
|
||||||
|
<span style="margin-left: 12px;">
|
||||||
<DxButton Text="@(ThemeState.IsDarkMode ? "Dark Mode aus" : "Dark Mode an")"
|
<DxButton Text="@(ThemeState.IsDarkMode ? "Dark Mode aus" : "Dark Mode an")"
|
||||||
Click="ToggleTheme" />
|
Click="ToggleTheme" />
|
||||||
|
</span>
|
||||||
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
|
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -185,3 +185,7 @@ dxbl-grid tbody tr:nth-child(even) td {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.top-row .btn-gap {
|
||||||
|
margin-left: 8px;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user