]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
services.cgi: Don't always try expand the status column unless asked
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 6 Sep 2024 16:02:26 +0000 (18:02 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Apr 2025 14:48:52 +0000 (16:48 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/services.cgi
html/html/themes/ipfire/include/css/style.css

index 43babf5229957f037e3381df5e8248a3a14c667b..462b6bfa1a14a0c1b8a5f82b7b5ce30c575b72d8 100644 (file)
@@ -205,7 +205,7 @@ sub isautorun (@) {
 sub isrunningaddon (@) {
        my ($pak, $service) = @_;
 
-       my $status = "<td class='status is-stopped'>$Lang::tr{'stopped'}</td><td colspan='2'></td>";
+       my $status = "<td class='status is-stopped is-fixed'>$Lang::tr{'stopped'}</td><td colspan='2'></td>";
        my $testcmd = '';
        my $exename;
 
@@ -234,7 +234,7 @@ sub isrunningaddon (@) {
                $status .="<td align='right'>$memory</td>";
        }else{
                $status = "<td align='center' width='16%' colspan=2><a href='services.cgi?$pak!start!$service'><img alt='$Lang::tr{'start'}' title='$Lang::tr{'start'}' src='/images/go-up.png' border='0' /></a></td>";
-               $status .= "<td class='status is-stopped'>$Lang::tr{'stopped'}</td><td colspan='2'></td>";
+               $status .= "<td class='status is-stopped is-fixed'>$Lang::tr{'stopped'}</td><td colspan='2'></td>";
        }
        return $status;
 }
index dd97e41ed9e44f6cdeae53625984409575f995ea..c598893261f4b86e985e61d8a68949d99a6ef2de 100644 (file)
@@ -497,7 +497,9 @@ table.form tr.action td form {
 .tbl .status.is-stopped, .tbl .status.is-disconnected {
        background-color: var(--color-red);
        color: var(--color-red-invert);
+}
 
+.tbl .status.is-fixed {
        width: 33%;
 }