fix: break words in dropdown + multiselect (#8058)

* fix: break words in dropdown + multiselect

* fix: prevent shrinking of x button
This commit is contained in:
Amos You 2024-04-19 09:53:38 -07:00 committed by GitHub
parent 5d9db89aa6
commit 26e1c87179
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -92,6 +92,7 @@
class:active={index === active_index}
class:bg-gray-100={index === active_index}
class:dark:bg-gray-600={index === active_index}
style:width={input_width + "px"}
data-index={index}
aria-label={choices[index][0]}
data-testid="dropdown-option"
@ -127,6 +128,7 @@
display: flex;
cursor: pointer;
padding: var(--size-2);
word-break: break-word;
}
.item:hover,

View File

@ -357,6 +357,7 @@
font-weight: var(--checkbox-label-text-weight);
font-size: var(--checkbox-label-text-size);
line-height: var(--line-md);
word-break: break-word;
}
.token > * + * {
@ -375,6 +376,7 @@
padding: var(--size-0-5);
width: 16px;
height: 16px;
flex-shrink: 0;
}
.secondary-wrap {