Better positioning
parent
2547606903
commit
8c963f2968
|
@ -17,13 +17,13 @@
|
|||
},
|
||||
overlay: 'border border-surface-200 dark:border-surface-700 bg-surface-0 dark:bg-surface-950 shadow-2 rounded-md',
|
||||
listContainer: 'max-h-40 overflow-auto',
|
||||
list: 'm-0 py-2 px-2 list-none rounded-md',
|
||||
option: 'cursor-pointer py-1 px-2 text-sm text-surface-700 dark:text-white/80 data-[p-focus=true]:bg-surface-100 data-[p-focus=true]:dark:bg-surface-800'
|
||||
list: 'm-0 py-2 px-2 list-none',
|
||||
option: 'cursor-pointer py-1 text-sm text-surface-700 dark:text-white/80 data-[p-focus=true]:bg-surface-100 data-[p-focus=true]:dark:bg-surface-800 rounded-md'
|
||||
}"
|
||||
@option-select="onOptionSelect"
|
||||
>
|
||||
<template #option="slotProps">
|
||||
<div v-tooltip.left="slotProps.option.value" class="flex items-center justify-between gap-4">
|
||||
<div v-tooltip.left="slotProps.option.value" class="flex items-center justify-between gap-4 px-2">
|
||||
<span>{{ slotProps.option.token }}</span>
|
||||
<div v-if="slotProps.option.isColor" class="border border-surface-200 dark:border-surface-700 w-4 h-4 rounded-full" :style="{ backgroundColor: slotProps.option.variable }"></div>
|
||||
<div v-else class="text-xs max-w-16 text-ellipsis whitespace-nowrap overflow-hidden">
|
||||
|
|
Loading…
Reference in New Issue