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 pills: Rework pills sizes and layout.

evykassirerd655ab857075
diff --git a/web/styles/search.css b/web/styles/search.css
index 457ee5c604b..4dfb2f521e5 100644
--- a/web/styles/search.css
+++ b/web/styles/search.css
@@ -222,7 +222,6 @@
.pill {
margin: 0;
min-width: unset;
- height: 26px;
}
&:not(.focused) {
@@ -236,30 +235,26 @@
}
.user-pill-container {
- padding: 2px;
- height: 22px;
min-width: fit-content;
+ gap: 5px;
> .pill-label {
min-width: fit-content;
white-space: nowrap;
width: fit-content;
+ /* Replaced by the 5px gap. */
+ margin-right: 0;
}
.pill {
- height: 22px;
- margin: 2px;
+ height: var(--height-input-pill);
border: none;
+ border-radius: 3px;
&:not(.deactivated-pill) {
background-color: var(--color-background-user-pill);
}
}
-
- .pill-image {
- width: 22px;
- height: 22px;
- }
}
}
@@ -345,7 +340,7 @@
.pill-image {
/* Add line-height equal to height to mimic baseline alignment. */
- line-height: 20px;
+ line-height: var(--length-input-pill-image);
align-self: center;
}
}