mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
search: Align suggestion left padding with search bar icon space.
(cherry picked from commit fc9bbd37a0)
This commit is contained in:
@@ -197,6 +197,12 @@
|
|||||||
|
|
||||||
--search-pill-label-min-width: 2.5em; /* 35px at 14px/em */
|
--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 upon
|
Since #navbar_alerts_wrapper can take variable height depending upon
|
||||||
window width / language, we sync its height in navbar_alerts.js
|
window width / language, we sync its height in navbar_alerts.js
|
||||||
|
|||||||
@@ -224,7 +224,7 @@
|
|||||||
border: none;
|
border: none;
|
||||||
grid-template:
|
grid-template:
|
||||||
"search-icon search-pills search-close" var(--search-box-height)
|
"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 */
|
1.75em; /* 28px at 16px em */
|
||||||
align-content: center;
|
align-content: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -232,8 +232,7 @@
|
|||||||
/* Override styles for .pill-container that aren't relevant for search. */
|
/* Override styles for .pill-container that aren't relevant for search. */
|
||||||
&.pill-container {
|
&.pill-container {
|
||||||
background: inherit;
|
background: inherit;
|
||||||
/* Maintain only a column gap. */
|
gap: 0;
|
||||||
gap: 0 0.3125em; /* 5px at 16px em */
|
|
||||||
/* Override padding. */
|
/* Override padding. */
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
@@ -382,7 +381,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.typeahead-menu .simplebar-content > li > a {
|
.typeahead-menu .simplebar-content > li > a {
|
||||||
padding: 3px 40px;
|
padding: 3px var(--search-left-padding);
|
||||||
/* Override white-space: nowrap from zulip.css */
|
/* Override white-space: nowrap from zulip.css */
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user