From 387c3813000be8d64e58da0c82014574729545a8 Mon Sep 17 00:00:00 2001 From: Monviech <79600909+Monviech@users.noreply.github.com> Date: Fri, 28 Feb 2025 13:45:51 +0100 Subject: [PATCH] mvc/view: Ensure fields stay aligned relatively to another when headers are used in forms (#8364) * mvc/view: Ensure fields stay aligned relatively to another when headers are used in forms. * mvc/view: Add style that forces consistency in smaller viewport sizes in base forms. * mvc/view: Make classes more selective so the style does not leak when modal-dialog and form-inline exist in the same view (e.g. dnsmasq). * mvc/view: Ensure the change in base_dialog is backwards compatible when msgzone_width is defined (e.g. in Intrusion Detection) --- .../views/layout_partials/base_dialog.volt | 34 +++++++++++++++---- .../app/views/layout_partials/base_form.volt | 29 +++++++++++----- 2 files changed, 47 insertions(+), 16 deletions(-) diff --git a/src/opnsense/mvc/app/views/layout_partials/base_dialog.volt b/src/opnsense/mvc/app/views/layout_partials/base_dialog.volt index 9338c0c1f..55060d5ad 100644 --- a/src/opnsense/mvc/app/views/layout_partials/base_dialog.volt +++ b/src/opnsense/mvc/app/views/layout_partials/base_dialog.volt @@ -1,5 +1,5 @@ {# - # Copyright (c) 2014-2015 Deciso B.V. + # Copyright (c) 2014-2025 Deciso B.V. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, @@ -66,11 +66,17 @@