Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

search_pill: Use sizes in grid declaration to improve narrow screen UI.

evykassirer07d72a1d39e1
diff --git a/web/styles/search.css b/web/styles/search.css
index 39f12bf61e2..e4db6a3c469 100644
--- a/web/styles/search.css
+++ b/web/styles/search.css
@@ -288,7 +288,15 @@
border-radius: 4px;
max-width: none;
display: grid;
- grid-template-columns: auto 1fr auto;
+ grid-template-columns:
+ var(--length-input-pill-image) minmax(
+ calc(
+ var(--search-pill-label-min-width) + 2 *
+ var(--input-pill-side-padding)
+ ),
+ 1fr
+ )
+ var(--length-input-pill-exit);
/* Don't inherit large line-height for user pills themselves, either. */
line-height: 1.1;