mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-04-22 23:18:23 +02:00
Et2Select: Fix doubled tags, long tags missing ellipsis
This commit is contained in:
parent
6db4bdbac0
commit
5a824ef25b
@ -84,7 +84,11 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
|
|||||||
.dropdown__panel {
|
.dropdown__panel {
|
||||||
overflow-x: clip;
|
overflow-x: clip;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ellipsis when too small */
|
/* Ellipsis when too small */
|
||||||
|
.select_tags {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
.select__label {
|
.select__label {
|
||||||
display: block;
|
display: block;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
@ -779,7 +779,7 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
|
|||||||
handleMenuSelect(event)
|
handleMenuSelect(event)
|
||||||
{
|
{
|
||||||
// Need to keep the remote option - only if selected
|
// Need to keep the remote option - only if selected
|
||||||
if(event.detail.item.classList.contains("remote") && !this._selected_remote.find(o => o.value == event.detail.item.value))
|
if(event.detail.item.classList.contains("remote") && !this.select_options.find(o => o.value == event.detail.item.value))
|
||||||
{
|
{
|
||||||
this._selected_remote.push({...event.detail.item.option});
|
this._selected_remote.push({...event.detail.item.option});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user