0
Fork 0
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:
Xiao Yijun 2022-12-09 19:46:54 +08:00 committed by GitHub
parent 6a03e286c1
commit 25e90fb408
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -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);

View file

@ -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)}