Form-field: Truncate the "read-only prefix" to 40% width so that the input field is always visible.
Currently, the input field goes off-screen if the read-only prefix is too long. Given that the prefix is read-only, the user probably knows what the prefix is from context. e.g. In the case of the Repost Modal, the prefix is repeated in a selection field above. So, it's probably ok to just truncate the text to an ellipsis. The input field is the more important one here, so giving it 60% width when truncation is needed.
This commit is contained in:
parent
b12c297a65
commit
861dd2a70f
1 changed files with 4 additions and 0 deletions
|
@ -71,8 +71,12 @@ fieldset-group {
|
|||
}
|
||||
|
||||
fieldset-section:first-child {
|
||||
max-width: 40%;
|
||||
|
||||
.form-field__prefix {
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
padding: 0.5rem;
|
||||
padding-right: var(--spacing-s);
|
||||
height: var(--height-input);
|
||||
|
|
Loading…
Reference in a new issue