From 8b378cd4e7ae7f3075d8945dcdaf29dff6047657 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 16 Nov 2023 11:29:16 +0100 Subject: [PATCH] ui: unify dropdown width Fix a nasty scroll bar bug with alias proto selector, style and adjust all manual widths accordingly. For a strange reason the text inputs are 2px shorter in the base forms than the modals and the static pages so adjust the width to 346 in that case. --- .../mvc/app/views/OPNsense/Firewall/alias.volt | 14 ++++++++++---- .../app/views/layout_partials/form_input_tr.volt | 2 +- src/www/firewall_nat_1to1_edit.php | 2 +- src/www/firewall_nat_edit.php | 2 +- src/www/firewall_nat_npt_edit.php | 2 +- src/www/firewall_nat_out_edit.php | 2 +- src/www/firewall_rules_edit.php | 2 +- 7 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/opnsense/mvc/app/views/OPNsense/Firewall/alias.volt b/src/opnsense/mvc/app/views/OPNsense/Firewall/alias.volt index 3c3ad9a77..1c7624696 100644 --- a/src/opnsense/mvc/app/views/OPNsense/Firewall/alias.volt +++ b/src/opnsense/mvc/app/views/OPNsense/Firewall/alias.volt @@ -33,6 +33,10 @@ } } + .dropdown-fixup { + overflow-x: hidden !important; + } + .alias_table { background-color: transparent !important; } @@ -333,6 +337,8 @@ case 'geoip': $("#alias_type_geoip").show(); $("#alias\\.proto").selectpicker('show'); + /* work around JS injection of nasty overflow scroll bar being injected */ + $("#row_alias\\.type > td > .dropdown:last > .dropdown-menu > .inner").addClass('dropdown-fixup'); break; case 'asn': $("#alias_type_default").show(); @@ -766,8 +772,8 @@ - - + + @@ -781,7 +787,7 @@ - + @@ -835,7 +841,7 @@ + + + + +