refactor: simplify header structure in DefaultPageLayout

- Removed unnecessary wrapper div and adjusted the header layout in Header.php for cleaner code.
- Updated CSS to reflect changes in the header structure, ensuring proper styling for the unraid-header-os-version component.

This change aims to enhance code readability and maintainability by streamlining the header layout. No further changes are pending for this task.
This commit is contained in:
Zack Spear
2025-07-07 13:03:52 -07:00
committed by Zack Spear
parent 05c3b74b91
commit 559115bfe9
2 changed files with 6 additions and 8 deletions

View File

@@ -1,9 +1,5 @@
<div id="header" class="<?=$display['banner']?>">
<div class="logo">
<unraid-i18n-host>
<unraid-header-os-version></unraid-header-os-version>
</unraid-i18n-host>
</div>
<unraid-header-os-version></unraid-header-os-version>
<?include "$docroot/plugins/dynamix.my.servers/include/myservers2.php"?>
</div>

View File

@@ -427,9 +427,7 @@ textarea {
background-repeat: no-repeat;
}
#header unraid-i18n-host {
font-size: 16px;
margin-left: auto;
#header unraid-user-profile {
height: 100%;
}
@@ -2040,6 +2038,10 @@ span#wlan0 {
justify-self: stretch;
}
.h-full {
height: 100%;
}
.w-full {
width: 100%;
}