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.

compose: Let pill-container dictate spacing of pills.

Karl Stolley3a4719915cc2
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index a3f349011bd..8b5cab4c44b 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -204,6 +204,8 @@
/* 1.4286em is 20px at 14px/1em */
--height-input-pill: 1.4286em;
--length-input-pill-image: var(--height-input-pill);
+ --vertical-spacing-input-pill: 2px;
+ --horizontal-spacing-input-pill: 6px;
/* Overlay heights for streams modal */
--overlay-container-height: 95vh;
diff --git a/web/styles/input_pill.css b/web/styles/input_pill.css
index a34ab3d43d2..cbb31e63643 100644
--- a/web/styles/input_pill.css
+++ b/web/styles/input_pill.css
@@ -17,7 +17,7 @@
min-width: 0;
height: var(--height-input-pill);
- margin: 1px 2px;
+ margin: 0;
color: inherit;
border: 1px solid transparent;
@@ -157,7 +157,8 @@
}
#compose-direct-recipient .pill-container {
- padding: 0 2px;
+ gap: var(--vertical-spacing-input-pill) var(--horizontal-spacing-input-pill);
+ padding: var(--vertical-spacing-input-pill);
border: 1px solid hsl(0deg 0% 0% / 20%);
background-color: hsl(0deg 0% 100%);