Skip to content

Commit a2000df

Browse files
committed
refac
1 parent 668f9fe commit a2000df

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/lib/components/chat/ModelSelector/Selector.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@
384384
await tick();
385385
const item = document.querySelector(`[data-arrow-selected="true"]`);
386386
item?.scrollIntoView({ block: 'center', inline: 'nearest', behavior: 'instant' });
387+
schedulePositionUpdate();
387388
};
388389
389390
const setCompareEnabled = (enabled: boolean) => {
@@ -749,7 +750,8 @@
749750
>
750751
<div
751752
bind:this={panelElement}
752-
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"
753+
class="z-40 {className ??
754+
'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"
753755
style={dropdownPosition.maxHeight ? `max-height: ${dropdownPosition.maxHeight}px;` : ''}
754756
transition:flyAndScale
755757
>

0 commit comments

Comments
 (0)