mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 00:59:48 -06:00
fix: enhance layout consistency in CacheDevices.page
- Wrapped the devices table in a div for improved layout structure. - This change continues the effort to enhance visual consistency across the plugin.
This commit is contained in:
@@ -129,6 +129,7 @@ $('#tab2').bind({click:function() {$('i.toggle').show('slow');}});
|
||||
<?endif;?>
|
||||
</script>
|
||||
|
||||
<div class="TableContainer">
|
||||
<table class="unraid disk_status">
|
||||
<?$i = 0?>
|
||||
<?foreach ($pools as $pool):?>
|
||||
@@ -139,9 +140,26 @@ $power = _var($display,'power') && in_array('nvme',array_column($cache,'transpor
|
||||
$root = explode($_tilde_,$pool)[0];
|
||||
?>
|
||||
<?if ($i==0):?>
|
||||
<thead><tr><td>_(Device)_</td><td>_(Identification)_</td><td><?=$power?>_(Temp)_</td><td>_(Reads)_</td><td>_(Writes)_</td><td>_(Errors)_</td><td>_(FS)_</td><td>_(Size)_</td><td>_(Used)_</td><td>_(Free)_</td></tr></thead>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>_(Device)_</td>
|
||||
<td>_(Identification)_</td>
|
||||
<td><?=$power?>_(Temp)_</td>
|
||||
<td>_(Reads)_</td>
|
||||
<td>_(Writes)_</td>
|
||||
<td>_(Errors)_</td>
|
||||
<td>_(FS)_</td>
|
||||
<td>_(Size)_</td>
|
||||
<td>_(Used)_</td>
|
||||
<td>_(Free)_</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<?else:?>
|
||||
<thead><tr><td class="divider" colspan="10"></td></td></tr></thead>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="divider" colspan="10"></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<?endif;?>
|
||||
<?endif;?>
|
||||
<tbody id="pool_device<?=$i++?>">
|
||||
@@ -151,6 +169,7 @@ $root = explode($_tilde_,$pool)[0];
|
||||
<?endif;?>
|
||||
<?endforeach;?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
:cache_devices_help:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user