Show title for cut off select item entries
This commit is contained in:
@@ -147,7 +147,7 @@
|
|||||||
message = `${entry.extraData.workflowTitle}`
|
message = `${entry.extraData.workflowTitle}`
|
||||||
}
|
}
|
||||||
|
|
||||||
if (subgraphs) {
|
if (subgraphs && subgraphs.length > 0) {
|
||||||
const subgraphsString = subgraphs.join(', ')
|
const subgraphsString = subgraphs.join(', ')
|
||||||
message += ` (${subgraphsString})`
|
message += ` (${subgraphsString})`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,10 +129,21 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getTitle(value?: string) {
|
||||||
|
if (value == null) {
|
||||||
|
if (!nodeValue)
|
||||||
|
return ""
|
||||||
|
value = $nodeValue
|
||||||
|
}
|
||||||
|
|
||||||
|
if (value && value.length > 80)
|
||||||
|
return String(value)
|
||||||
|
return ""
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="wrapper comfy-combo" class:mobile={isMobile} class:updated={$lightUp}>
|
<div class="wrapper comfy-combo" class:mobile={isMobile} class:updated={$lightUp}>
|
||||||
<label>
|
<label title={getTitle()}>
|
||||||
{#if widget.attrs.title !== ""}
|
{#if widget.attrs.title !== ""}
|
||||||
<BlockTitle show_label={true}>
|
<BlockTitle show_label={true}>
|
||||||
{widget.attrs.title}
|
{widget.attrs.title}
|
||||||
@@ -175,6 +186,7 @@
|
|||||||
class:mobile={isMobile}
|
class:mobile={isMobile}
|
||||||
let:index={i}
|
let:index={i}
|
||||||
let:style
|
let:style
|
||||||
|
title={getTitle(filteredItems[i].label)}
|
||||||
{style}
|
{style}
|
||||||
class:active={activeIndex === filteredItems[i].index}
|
class:active={activeIndex === filteredItems[i].index}
|
||||||
class:hover={hoverItemIndex === i}
|
class:hover={hoverItemIndex === i}
|
||||||
|
|||||||
Reference in New Issue
Block a user