mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-16 19:43:06 +00:00
small ui improvements (#2196)
* ui: add slight gap in keyCombo display * ui: show ellipsis when selected dropdown option is to long
This commit is contained in:
committed by
GitHub
parent
27a35fe555
commit
319293ab4c
@@ -15,6 +15,14 @@
|
|||||||
|
|
||||||
padding-inline: 0.5rem;
|
padding-inline: 0.5rem;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.valueText {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
&:hover:not([data-disabled]) {
|
&:hover:not([data-disabled]) {
|
||||||
background-color: $gray-1100;
|
background-color: $gray-1100;
|
||||||
|
|||||||
@@ -22,7 +22,9 @@ export default function Select<T>({ options, fluid, size = 'medium', ...selectRo
|
|||||||
return (
|
return (
|
||||||
<BaseSelect.Root items={options} {...selectRootProps}>
|
<BaseSelect.Root items={options} {...selectRootProps}>
|
||||||
<BaseSelect.Trigger className={cx([styles.select, styles[size], fluid && styles.fluid])}>
|
<BaseSelect.Trigger className={cx([styles.select, styles[size], fluid && styles.fluid])}>
|
||||||
<BaseSelect.Value />
|
<span className={styles.valueText}>
|
||||||
|
<BaseSelect.Value />
|
||||||
|
</span>
|
||||||
<BaseSelect.Icon className={styles.selectIcon}>
|
<BaseSelect.Icon className={styles.selectIcon}>
|
||||||
<LuChevronsUpDown />
|
<LuChevronsUpDown />
|
||||||
</BaseSelect.Icon>
|
</BaseSelect.Icon>
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
gap: 0.25rem 0;
|
gap: 0.25rem 0.125rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.separator {
|
.separator {
|
||||||
|
|||||||
Reference in New Issue
Block a user