[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 {
|
.nav {
|
||||||
padding-top: 1rem;
|
padding-top: 1rem;
|
||||||
max-width: 10rem;
|
|
||||||
min-width: 10rem;
|
min-width: 10rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,3 @@
|
||||||
@Body
|
@Body
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@code {
|
|
||||||
}
|
|
|
@ -9,3 +9,9 @@
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media(max-width: 1000px){
|
||||||
|
.sidebar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
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