[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 {
padding-top: 1rem;
max-width: 10rem;
min-width: 10rem;
}

View file

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

View file

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

View file

@ -1,9 +1,24 @@
@page "/Settings"
@layout SettingsLayout
@inject NavigationManager Nav;
@using Iceshrimp.Frontend.Components
@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 {
protected override void OnInitialized()
{
Nav.NavigateTo("/settings/profile");
// Nav.NavigateTo("/settings/profile");
}
}

View file

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