Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
search: Align suggestion left padding with search bar icon space.
Evy Kassirerfc9bbd37a0f2
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex b2e7febccb3..84d1657cb1a 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -197,6 +197,12 @@--search-pill-label-min-width: 2.5em; /* 35px at 14px/em */+ /*+ This is the space for the searchbar's search icon, and the left padding+ for the search suggestions so they match up with searchbar content.+ */+ --search-left-padding: 35px;+/*Since #navbar_alerts_wrapper can take variable height depending uponwindow width / language, we sync its height in navbar_alerts.jsdiff --git a/web/styles/search.css b/web/styles/search.cssindex b39540685aa..35b4c88e212 100644--- a/web/styles/search.css+++ b/web/styles/search.css@@ -224,7 +224,7 @@border: none;grid-template:"search-icon search-pills search-close" var(--search-box-height)- ". search-pills ." auto / auto minmax(0, 1fr)+ ". search-pills ." auto / var(--search-left-padding) minmax(0, 1fr)1.75em; /* 28px at 16px em */align-content: center;cursor: pointer;@@ -232,8 +232,7 @@/* Override styles for .pill-container that aren't relevant for search. */&.pill-container {background: inherit;- /* Maintain only a column gap. */- gap: 0 0.3125em; /* 5px at 16px em */+ gap: 0;/* Override padding. */padding: 0;}@@ -382,7 +381,7 @@}.typeahead-menu .simplebar-content > li > a {- padding: 3px 40px;+ padding: 3px var(--search-left-padding);/* Override white-space: nowrap from zulip.css */white-space: normal;