mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
pill_input: Use flex-grow 1 on all input pills.
This extends existing styling for pills for search and org permissions, to fix a bug in the invite users modal. Continues work in #34371, which tested other input elements. Fixes bug reported here: https://chat.zulip.org/#narrow/channel/9-issues/topic/pasting.20invite.20email.20addresses
This commit is contained in:
@@ -206,6 +206,7 @@
|
|||||||
|
|
||||||
min-width: 2px;
|
min-width: 2px;
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|
||||||
|
|||||||
@@ -952,13 +952,9 @@ input[type="checkbox"] {
|
|||||||
/* Subtract 2 * (2px padding) + 2 * (1px border) */
|
/* Subtract 2 * (2px padding) + 2 * (1px border) */
|
||||||
min-width: calc(var(--modal-input-width) - 6px);
|
min-width: calc(var(--modal-input-width) - 6px);
|
||||||
|
|
||||||
.input {
|
.input:first-child:empty::before {
|
||||||
flex-grow: 1;
|
opacity: 0.5;
|
||||||
|
content: attr(data-placeholder);
|
||||||
&:first-child:empty::before {
|
|
||||||
opacity: 0.5;
|
|
||||||
content: attr(data-placeholder);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1337,13 +1337,9 @@ div.settings-radio-input-parent {
|
|||||||
/* Subtract 2 * (2px padding) + 2 * (1px border) */
|
/* Subtract 2 * (2px padding) + 2 * (1px border) */
|
||||||
min-width: calc(var(--modal-input-width) - 6px);
|
min-width: calc(var(--modal-input-width) - 6px);
|
||||||
|
|
||||||
.input {
|
.input:first-child:empty::before {
|
||||||
flex-grow: 1;
|
opacity: 0.5;
|
||||||
|
content: attr(data-placeholder);
|
||||||
&:first-child:empty::before {
|
|
||||||
opacity: 0.5;
|
|
||||||
content: attr(data-placeholder);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user