style: wrap capabilities table in SmartInfo.php with TableContainer for improved layout

- Encapsulated the existing capabilities table within a <div> with class "TableContainer" to enhance responsiveness and layout consistency.
- This change aligns with previous updates for better structure across similar components.
This commit is contained in:
Zack Spear
2025-05-09 14:31:43 -07:00
parent 0a9a28bf70
commit ddeea55f37
+2 -2
View File
@@ -142,7 +142,7 @@ case "attributes":
if ($empty) echo "<tr><td colspan='10' style='text-align:center;padding-top:12px'>"._('Attributes not available')."</td></tr>";
break;
case "capabilities":
echo '<table id="disk_capabilities_table" class="unraid"><thead><td style="width:33%">'._('Feature').'</td><td>'._('Value').'</td><td>'._('Information').'</td></thead><tbody>' ;
echo '<div class="TableContainer"><table id="disk_capabilities_table" class="unraid"><thead><td style="width:33%">'._('Feature').'</td><td>'._('Value').'</td><td>'._('Information').'</td></thead><tbody>' ;
exec("smartctl -n standby -c $type ".escapeshellarg("/dev/$port")."|awk 'NR>5'",$output);
$row = ['','',''];
$empty = true;
@@ -154,7 +154,7 @@ case "capabilities":
$info = array_map('trim', explode('_', preg_replace('/_( +)_ /','__',$line), 3));
if ($nvme && $info[0]=="Supported Power States" ) { $nvme_section="psheading" ;echo "</body></table><div class='title'><span>{$line}</span></div>"; $row = ['','',''] ; continue ;}
if ($nvme && $info[0]=="Supported LBA Sizes" ) {
echo "</body></table><div class='title'>{$info[0]} {$info[1]} {$info[2]}</span></div>";
echo "</body></table></div><div class='title'>{$info[0]} {$info[1]} {$info[2]}</span></div>";
$row = ['','',''];
$nvme_section="lbaheading" ;
continue ;