[frontend] Rework settings panel responsiveness
This commit is contained in:
parent
6dbb8e3072
commit
6234fbfd17
5 changed files with 27 additions and 7 deletions
|
@ -14,7 +14,6 @@
|
|||
|
||||
.nav {
|
||||
padding-top: 1rem;
|
||||
max-width: 10rem;
|
||||
min-width: 10rem;
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,3 @@
|
|||
@Body
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
}
|
|
@ -9,3 +9,9 @@
|
|||
height: 100%;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
@media(max-width: 1000px){
|
||||
.sidebar {
|
||||
display: none;
|
||||
}
|
||||
}
|
|
@ -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");
|
||||
}
|
||||
}
|
3
Iceshrimp.Frontend/Pages/Settings/Settings.razor.css
Normal file
3
Iceshrimp.Frontend/Pages/Settings/Settings.razor.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
.body {
|
||||
max-width: 25rem;
|
||||
}
|
Loading…
Add table
Reference in a new issue