]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
zoneconf: reduce the width of inputs for vlanid
authorAlex Koch <ipfire@starkstromkonsument.de>
Sun, 1 Sep 2019 22:47:29 +0000 (00:47 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 12 Sep 2019 10:19:14 +0000 (10:19 +0000)
The inputs for the vlanids are overlapping the borders of their cells (using a recent Firefox on Linux Mint, Android or Windows 7). This patch fixes this by limiting the width to a fixed value.

Signed-off-by: Alex Koch <ipfire@starkstromkonsument.de>
Signed-off-by: Alex Koch <ipfire@starkstromkonsument.de>
Acked-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
html/cgi-bin/zoneconf.cgi

index 40239c14ed3d1f108bf7d08cbe85d8363c17f407..6b864281814e1ca13084fb7fa2179c71f27ee810 100644 (file)
@@ -93,6 +93,10 @@ my $css = <<END
                text-align: center;
        }
 
+       input.vlanid {
+               width: 4em;
+       }
+
        #submit-container {
                width: 100%;
                padding-top: 20px;
@@ -432,7 +436,7 @@ foreach (@nics) {
                                        <option value="NATIVE" $access_selected{"NATIVE"}>$Lang::tr{"zoneconf access native"}</option>
                                        <option value="VLAN" $access_selected{"VLAN"} $vlan_disabled>$Lang::tr{"zoneconf access vlan"}</option>
                                </select>
-                               <input type="number" id="TAG $uc $mac" name="TAG $uc $mac" min="1" max="4095" value="$zone_vlan_id" $field_disabled>
+                               <input type="number" class="vlanid" id="TAG $uc $mac" name="TAG $uc $mac" min="1" max="4095" value="$zone_vlan_id" $field_disabled>
                        </td>
 END
 ;