mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
style(console): fix dropdown title text ellipsis (#2628)
This commit is contained in:
parent
6a03e286c1
commit
25e90fb408
2 changed files with 5 additions and 4 deletions
|
@ -15,9 +15,10 @@
|
|||
font: var(--font-body-medium);
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
||||
.title {
|
||||
@include _.text-ellipsis;
|
||||
}
|
||||
|
||||
&.open {
|
||||
border-color: var(--color-primary);
|
||||
|
|
|
@ -80,7 +80,7 @@ const Select = <T extends string>({
|
|||
}
|
||||
}}
|
||||
>
|
||||
{current?.title ?? placeholder}
|
||||
<div className={styles.title}>{current?.title ?? placeholder}</div>
|
||||
{isClearable && (
|
||||
<IconButton
|
||||
className={classNames(styles.icon, styles.clear)}
|
||||
|
|
Loading…
Reference in a new issue