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.

pill_input: Use flex-grow 1 on all input pills.

Evy Kassirer9d532baa948d
diff --git a/web/styles/input_pill.css b/web/styles/input_pill.css
index d9ee1638af1..80e551bf8ac 100644
--- a/web/styles/input_pill.css
+++ b/web/styles/input_pill.css
@@ -206,6 +206,7 @@
min-width: 2px;
overflow-wrap: anywhere;
+ flex: 1 1 auto;
outline: none;
diff --git a/web/styles/settings.css b/web/styles/settings.css
index da233b33310..33bd1354dc3 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -952,13 +952,9 @@ input[type="checkbox"] {
/* Subtract 2 * (2px padding) + 2 * (1px border) */
min-width: calc(var(--modal-input-width) - 6px);
- .input {
- flex-grow: 1;
-
- &:first-child:empty::before {
- opacity: 0.5;
- content: attr(data-placeholder);
- }
+ .input:first-child:empty::before {
+ opacity: 0.5;
+ content: attr(data-placeholder);
}
}
diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.css
index 0c1afaf9826..fe58728fcb3 100644
--- a/web/styles/subscriptions.css
+++ b/web/styles/subscriptions.css
@@ -1337,13 +1337,9 @@ div.settings-radio-input-parent {
/* Subtract 2 * (2px padding) + 2 * (1px border) */
min-width: calc(var(--modal-input-width) - 6px);
- .input {
- flex-grow: 1;
-
- &:first-child:empty::before {
- opacity: 0.5;
- content: attr(data-placeholder);
- }
+ .input:first-child:empty::before {
+ opacity: 0.5;
+ content: attr(data-placeholder);
}
}