From 8deaaae44b8f11cccded9702a62fb0bda53dff05 Mon Sep 17 00:00:00 2001 From: bctiemann Date: Thu, 19 Sep 2024 13:07:36 -0400 Subject: [PATCH] Fixes: #17083 - Wrap labels in a div to reduce inadvertently clickable area to their left in forms (#17525) * Wrap labels in a div to reduce inadvertently clickable area to their left in forms * Set form label to be inline-block --- netbox/utilities/templates/form_helpers/render_field.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/netbox/utilities/templates/form_helpers/render_field.html b/netbox/utilities/templates/form_helpers/render_field.html index 47d1f8d10..9abaaa633 100644 --- a/netbox/utilities/templates/form_helpers/render_field.html +++ b/netbox/utilities/templates/form_helpers/render_field.html @@ -6,9 +6,11 @@ {# Render the field label (if any), except for checkboxes #} {% if label and not field|widget_type == 'checkboxinput' %} - +
+ +
{% endif %} {# Render the field itself #}