[frontend] Rework settings panel responsiveness

This commit is contained in:
Lilian 2024-09-06 05:13:41 +02:00
parent 6dbb8e3072
commit 6234fbfd17
No known key found for this signature in database
5 changed files with 27 additions and 7 deletions

View file

@ -14,7 +14,6 @@
.nav { .nav {
padding-top: 1rem; padding-top: 1rem;
max-width: 10rem;
min-width: 10rem; min-width: 10rem;
} }

View file

@ -19,6 +19,3 @@
@Body @Body
</div> </div>
</div> </div>
@code {
}

View file

@ -9,3 +9,9 @@
height: 100%; height: 100%;
padding: 2rem; padding: 2rem;
} }
@media(max-width: 1000px){
.sidebar {
display: none;
}
}

View file

@ -1,9 +1,24 @@
@page "/Settings" @page "/Settings"
@layout SettingsLayout @using Iceshrimp.Frontend.Components
@inject NavigationManager Nav; @using Microsoft.AspNetCore.Components.Sections
@using Iceshrimp.Assets.PhosphorIcons
@using Iceshrimp.Frontend.Localization
@using Microsoft.Extensions.Localization
@inject NavigationManager Nav;
@inject IStringLocalizer<Localization> Loc;
<SectionContent SectionName="top-bar">
<Icon Name="Icons.Gear"></Icon>
@Loc["Settings"]
</SectionContent>
<div class="body">
<SettingsMenu/>
</div>
@code { @code {
protected override void OnInitialized() protected override void OnInitialized()
{ {
Nav.NavigateTo("/settings/profile"); // Nav.NavigateTo("/settings/profile");
} }
} }

View file

@ -0,0 +1,3 @@
.body {
max-width: 25rem;
}