]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
dhcp.cgi: Adjust spacing between an icon and explanatory text
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 1 Jan 2024 14:35:45 +0000 (15:35 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Wed, 3 Jan 2024 21:02:19 +0000 (21:02 +0000)
- When dealing with a problem on the forum I noticed that in the Fixed Leases table
   Legend section there was a very large space between the empty checkbox icon and the
   explanatory text. It looks like the &nbsp that I have removed worked on the text
   section 'click to enable' as that was moved but not on the off.gif icon as that stayed
   in its original place leaving a very large space between the icon and the explanatory
   text. Removing the two &nbsp; commands fixes that.
- Reading up about &nbsp the problem might be related to these tags no longer being
   recommended to use with the newer HTML versions and that indenting or spacing should be
   done via CSS code. Will have a look in future on how to accomplish this via CSS.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>
html/cgi-bin/dhcp.cgi [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 84e2322..ec5d626
@@ -1153,7 +1153,6 @@ print <<END
        <td class='boldbase'>&nbsp;<b>$Lang::tr{'legend'}:&nbsp;</b></td>
        <td><img src='/images/on.gif' alt='$Lang::tr{'click to disable'}' /></td>
        <td class='base'>$Lang::tr{'click to disable'}</td>
-       <td>&nbsp;&nbsp;</td>
        <td><img src='/images/off.gif' alt='$Lang::tr{'click to enable'}' /></td>
        <td class='base'>$Lang::tr{'click to enable'}</td>
        <td>&nbsp;&nbsp;</td>