+
{#if filteredItems.length > 0}
handleSelect(filteredItems[i].index)}
- on:focus={() => handleHover(i)}
- on:mouseover={() => handleHover(i)}>
+ on:focus={() => handleHover(i)}
+ on:mouseover={() => handleHover(i)}>
{@const item = filteredItems[i]}
- {item.label}
+
+ {item.label}
+
-
active: {activeIndex}, hover: {hoverItemIndex}
+ {:else}
+
+ (No items)
+
{/if}
@@ -240,12 +251,21 @@
height: 100%
}
- .list {
- height: 30rem;
+ .comfy-select-list {
+ height: 300px;
width: 30rem;
background-color: white;
- .item {
+ .comfy-empty-list {
+ height: 100%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ font-size: xx-large;
+ color: var(--neutral-700)
+ }
+
+ .comfy-select-item {
font-size: 16px;
padding: 1.2rem;
border: 1px solid var(--neutral-300);
@@ -253,6 +273,9 @@
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
+ display: flex;
+ align-items: center;
+
&.hover {
color: white;
background: var(--neutral-400);
@@ -262,6 +285,10 @@
color: white;
background: var(--color-blue-500);
}
+
+ .comfy-select-label {
+
+ }
}
.details {