Make unused columns invisible for Array Status on Dashboard page

This commit is contained in:
bergware
2017-07-25 21:58:04 +02:00
parent 573e475e55
commit 444646ae79
+1 -2
View File
@@ -114,8 +114,7 @@ $slots = count($disks) + count($devs);
?>
<?if ($slots<30):?>
<style>
table.share_status.fixed{width:<?=min(round(($slots+1)*10/3+13),100)?>%}
table.share_status.fixed td:nth-child(<?=$slots+1?>)~td{display:none}
table.share_status.fixed td:nth-child(<?=$slots+1?>)~td{visibility:hidden}
</style>
<?endif;?>
<table class='share_status fixed'>