Fix: Array usage bar sidenav theme

This commit is contained in:
Squidly271
2025-11-12 17:42:18 -05:00
parent 189edb1a69
commit 40b62796df
3 changed files with 11 additions and 5 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
<div id="header" class="<?=$display['banner']?>">
<unraid-header-os-version></unraid-header-os-version>
<? if ($display['usage'] && $themeHelper->isSidebarTheme()): ?>
<span id='array-usage-sidenav'></span>
<? endif; ?>
<?include "$docroot/plugins/dynamix.my.servers/include/myservers2.php"?>
</div>
+4 -2
View File
@@ -37,10 +37,12 @@
</div>
<? endif; ?>
<? if ($display['usage']): ?>
<? if ($display['usage'] && ! $themeHelper->isSidebarTheme()): ?>
<? my_usage(); ?>
<? endif; ?>
<? if ($display['usage'] && $themeHelper->isSidebarTheme()): ?>
<script>$("#array-usage-sidenav").html("<?my_usage();?>");</script>
<? endif; ?>
<? foreach ($buttonPages as $button): ?>
<? if (empty($button['Link'])): ?>
<? $icon = $button['Icon']; ?>
@@ -2594,8 +2594,10 @@ div#title.ud {
}
.usage-bar {
position: relative;
width: 6.4rem;
POSITION: absolute;
bottom: .5rem;
left: 50%;
width: 14rem;
margin: 0;
padding: 0;
}