From 31d5d8c395ee8d2aedc3a07a2aac17e0be4b075d Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 2 Sep 2024 08:38:16 -0400 Subject: [PATCH] Fixes #17301: Fix script module edit & delete button styling (#17328) --- netbox/project-static/dist/netbox.css | Bin 548507 -> 548151 bytes .../styles/transitional/_cards.scss | 3 ++- netbox/templates/extras/script_list.html | 12 +++++------- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/netbox/project-static/dist/netbox.css b/netbox/project-static/dist/netbox.css index e6542d45c84d34cf24ba4661bdc68765f179344e..762cafd5dd54b0ed62a644201efe8f83e656a695 100644 GIT binary patch delta 88 zcmbQeS8@9;#SKg3Hb0f~VQel^XfIM=1Y#y2W(HywAZ7((w(UgINiNVLkxFPk3g#G$ font size for card headers h2.card-header { - @extend h5; + font-size: var(--#{$prefix}font-size-h5); + line-height: var(--#{$prefix}line-height-h5); margin-bottom: 0; } diff --git a/netbox/templates/extras/script_list.html b/netbox/templates/extras/script_list.html index ee5d73b1e..4699e2c09 100644 --- a/netbox/templates/extras/script_list.html +++ b/netbox/templates/extras/script_list.html @@ -22,18 +22,16 @@ {% for module in script_modules %} {% include 'inc/sync_warning.html' with object=module %}
-

-
- {{ module }} -
-
+

+ {{ module }} +
{% if perms.extras.edit_scriptmodule %} - + {% trans "Edit" %} {% endif %} {% if perms.extras.delete_scriptmodule %} - + {% trans "Delete" %} {% endif %}