Merge pull request #274 from Moonlight-Panel/ImproveServerTabIconHandling

Improved server tab icon handling
This commit is contained in:
Marcel Baumgartner 2023-08-15 21:59:51 +02:00 committed by GitHub
commit b8b2ae7865
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 7 deletions

View file

@ -90,7 +90,6 @@
<Folder Include="App\ApiClients\CloudPanel\Resources\" />
<Folder Include="App\Http\Middleware" />
<Folder Include="storage\backups\" />
<Folder Include="storage\plugins\" />
<Folder Include="storage\resources\public\background\" />
</ItemGroup>

View file

@ -249,7 +249,7 @@
{
Name = "Console",
Route = "/",
Icon = "terminal",
Icon = "bx-terminal",
Component = ComponentHelper.FromType(typeof(ServerConsole))
});
@ -257,7 +257,7 @@
{
Name = "Files",
Route = "/files",
Icon = "folder",
Icon = "bx-folder",
Component = ComponentHelper.FromType(typeof(ServerFiles))
});
@ -265,7 +265,7 @@
{
Name = "Backups",
Route = "/backups",
Icon = "box",
Icon = "bx-box",
Component = ComponentHelper.FromType(typeof(ServerBackups))
});
@ -273,7 +273,7 @@
{
Name = "Network",
Route = "/network",
Icon = "wifi",
Icon = "bx-wifi",
Component = ComponentHelper.FromType(typeof(ServerNetwork))
});
@ -281,7 +281,7 @@
{
Name = "Settings",
Route = "/settings",
Icon = "cog",
Icon = "bx-cog",
Component = ComponentHelper.FromType(typeof(ServerSettings))
});

View file

@ -130,7 +130,7 @@
{
<li class="nav-item w-100 me-0 mb-md-2">
<a href="/server/@(CurrentServer.Uuid + tab.Route)" class="nav-link w-100 btn btn-flex @(Route == tab.Route ? "active" : "") btn-active-light-primary">
<i class="bx bx-@(tab.Icon) bx-sm me-2"></i>
<i class="bx @(tab.Icon) bx-sm me-2"></i>
<span class="d-flex flex-column align-items-start">
<span class="fs-5">
<TL>@(tab.Name)</TL>