mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-13 11:57:29 +08:00
fix: break words in dropdown + multiselect (#8058)
* fix: break words in dropdown + multiselect * fix: prevent shrinking of x button
This commit is contained in:
parent
5d9db89aa6
commit
26e1c87179
@ -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,
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user