Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Extract variable for the right padding for table headers.
Sahil Batraa888763141d6
diff --git a/web/styles/app_components.css b/web/styles/app_components.cssindex 81308e6010c..9e6e7423648 100644--- a/web/styles/app_components.css+++ b/web/styles/app_components.css@@ -753,7 +753,7 @@ div.overlay {word-break: normal;&[data-sort] {- padding-right: 0.88em;+ padding-right: var(--table-header-sortable-column-padding-right);}&.active::after,diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex ff3a72f9163..d66edbf60aa 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -493,6 +493,13 @@*/--popover-tippy-arrow-before-offset: -6.5px;+ /*+ Padding used in headers for sortable columns in table to make sure+ that the arrow is visible completely for different screen widths,+ languages and font-size including when hovering over the header.+ */+ --table-header-sortable-column-padding-right: 0.88em;+/* Colors used across the app */--color-date: hsl(0deg 0% 15% / 75%);--color-background-private-message-header: hsl(46deg 35% 93%);diff --git a/web/styles/recent_view.css b/web/styles/recent_view.cssindex 9cad27d5e59..fdac3ba66b7 100644--- a/web/styles/recent_view.css+++ b/web/styles/recent_view.css@@ -123,7 +123,7 @@text-align: left;&[data-sort] {- padding-right: 0.88em;+ padding-right: var(--table-header-sortable-column-padding-right);}}