From ddeea55f374a955e2c20c2004cea05cdb877fec7 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Fri, 9 May 2025 14:31:43 -0700 Subject: [PATCH] style: wrap capabilities table in SmartInfo.php with TableContainer for improved layout - Encapsulated the existing capabilities table within a
with class "TableContainer" to enhance responsiveness and layout consistency. - This change aligns with previous updates for better structure across similar components. --- emhttp/plugins/dynamix/include/SmartInfo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/include/SmartInfo.php b/emhttp/plugins/dynamix/include/SmartInfo.php index fbb9d0589..70ed57e2d 100644 --- a/emhttp/plugins/dynamix/include/SmartInfo.php +++ b/emhttp/plugins/dynamix/include/SmartInfo.php @@ -142,7 +142,7 @@ case "attributes": if ($empty) echo ""._('Attributes not available').""; break; case "capabilities": - echo '' ; + echo '
'._('Feature').''._('Value').''._('Information').'
' ; 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 "
'._('Feature').''._('Value').''._('Information').'
{$line}
"; $row = ['','',''] ; continue ;} if ($nvme && $info[0]=="Supported LBA Sizes" ) { - echo "
{$info[0]} {$info[1]} {$info[2]}
"; + echo "
{$info[0]} {$info[1]} {$info[2]}
"; $row = ['','','']; $nvme_section="lbaheading" ; continue ;