mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-01-30 07:19:53 +05:30
Исправлен баг с длинными значениями для Dropdown компонента
This commit is contained in:
parent
27db768bc5
commit
da6a8cc1b2
@ -60,7 +60,7 @@ export default class Dropdown extends FormInputComponent {
|
||||
[styles.block]: block,
|
||||
[styles.opened]: isActive
|
||||
})} {...this.props} onClick={this.onToggle}>
|
||||
{label}
|
||||
<span className={styles.label}>{label}</span>
|
||||
<span className={styles.toggleIcon} />
|
||||
|
||||
<div className={styles.menu}>
|
||||
|
@ -43,6 +43,13 @@ $dropdownPadding: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.label {
|
||||
display: block;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.opened {
|
||||
|
||||
}
|
||||
@ -98,6 +105,8 @@ $dropdownPadding: 15px;
|
||||
}
|
||||
|
||||
.menuItem {
|
||||
composes: label;
|
||||
|
||||
height: 50px;
|
||||
padding: 0 13px;
|
||||
overflow: hidden;
|
||||
|
Loading…
x
Reference in New Issue
Block a user