From 35e2cf9cec18754cbb4599681b33618bc4d08aaf Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Mon, 26 Aug 2024 12:36:04 -0700 Subject: [PATCH] 17117 change caret to html entity to fix safari performacne issue (#17246) * change caret to html entity to fix safari performacne issue * change caret to html entity to fix safari performacne issue * 17117 use material icon * 17117 use material icon * 17117 use material icon * 17117 fix vertical align * Add comments & tweak padding --------- Co-authored-by: Jeremy Stretch --- netbox/project-static/dist/netbox.css | Bin 543393 -> 543569 bytes .../styles/overrides/_tabler.scss | 13 +++++++++++++ 2 files changed, 13 insertions(+) diff --git a/netbox/project-static/dist/netbox.css b/netbox/project-static/dist/netbox.css index 8460154e6b6b03969910d15c80ba811b618799bb..7d95ac540829f2baf8771e4554549c0621074058 100644 GIT binary patch delta 158 zcmZ2DRq^69#fBEf7N!>F7M2#)7Pc1lEgUTt)AqB7O|N(0P|UVY&d)1J%`34|ib*pt zG%--JE=WvC$;?aFEy_&KD6z6EsIX4TFG@)*(oM=QDap^Z%FEA7g$d=Prjv@MJ1WZi8;E7IhpBsR(b}eskzhbj5#Ex%lu>)+P=VogHZ?oWG^?s delta 41 xcmcaOO>yB=#fBEf7N!>F7M2#)7Pc1lEgUTt(?zs71g7_DbMR~ru;gGA0stsY3_Jh; diff --git a/netbox/project-static/styles/overrides/_tabler.scss b/netbox/project-static/styles/overrides/_tabler.scss index 9ff87e4ef..38a600601 100644 --- a/netbox/project-static/styles/overrides/_tabler.scss +++ b/netbox/project-static/styles/overrides/_tabler.scss @@ -45,6 +45,19 @@ table a { background-color: rgba(var(--tblr-primary-rgb),.48) } +// Do not apply padding to elements inside a
 pre code {
   padding: unset;
 }
+
+// Use an icon instead of Tabler's native "caret" for dropdowns (avoids a Safari bug)
+.dropdown-toggle:after{
+  font-family: "Material Design Icons";
+  content: '\F0140';
+  padding-right: 9px;
+  border-bottom: none;
+  border-left: none;
+  transform: none;
+  vertical-align: .05em;
+  height: auto;
+}