This commit is contained in:
Timothy Jaeryang Baek
2026-07-16 21:57:15 -04:00
parent 668f9fe390
commit a2000df253
@@ -384,6 +384,7 @@
await tick();
const item = document.querySelector(`[data-arrow-selected="true"]`);
item?.scrollIntoView({ block: 'center', inline: 'nearest', behavior: 'instant' });
schedulePositionUpdate();
};
const setCompareEnabled = (enabled: boolean) => {
@@ -749,7 +750,8 @@
>
<div
bind:this={panelElement}
class="z-40 {className} max-w-[calc(100vw-1rem)] justify-start rounded-xl border border-gray-100 bg-white p-0.5 shadow-lg outline-hidden dark:border-gray-800 dark:bg-gray-850 dark:text-white flex flex-col overflow-hidden"
class="z-40 {className ??
'w-[20rem]'} max-w-[calc(100vw-1rem)] justify-start rounded-xl border border-gray-100 bg-white p-0.5 shadow-lg outline-hidden dark:border-gray-800 dark:bg-gray-850 dark:text-white flex flex-col overflow-hidden"
style={dropdownPosition.maxHeight ? `max-height: ${dropdownPosition.maxHeight}px;` : ''}
transition:flyAndScale
>