refac
This commit is contained in:
1 parent
668f9fe390
commit
a2000df253
1 file changed
+3
-1
@@ -384,6 +384,7 @@
|
|||||||
await tick();
|
await tick();
|
||||||
const item = document.querySelector(`[data-arrow-selected="true"]`);
|
const item = document.querySelector(`[data-arrow-selected="true"]`);
|
||||||
item?.scrollIntoView({ block: 'center', inline: 'nearest', behavior: 'instant' });
|
item?.scrollIntoView({ block: 'center', inline: 'nearest', behavior: 'instant' });
|
||||||
|
schedulePositionUpdate();
|
||||||
};
|
};
|
||||||
|
|
||||||
const setCompareEnabled = (enabled: boolean) => {
|
const setCompareEnabled = (enabled: boolean) => {
|
||||||
@@ -749,7 +750,8 @@
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
bind:this={panelElement}
|
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;` : ''}
|
style={dropdownPosition.maxHeight ? `max-height: ${dropdownPosition.maxHeight}px;` : ''}
|
||||||
transition:flyAndScale
|
transition:flyAndScale
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in new issue
Block a user