Skip to content

Commit ddb0dd5

Browse files
committed
prevent ModelSelector tooltip from causing jank layout
1 parent 86cc333 commit ddb0dd5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

llms/ui/modules/model-selector.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ const ModelSelectorModal = {
685685
const ModelTooltip = {
686686
template: `
687687
<div v-if="model"
688-
class="absolute z-50 mt-10 ml-0 p-3 bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 text-sm w-72">
688+
class="absolute z-50 top-full mt-1 left-0 p-3 bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 text-sm w-72">
689689
<div class="font-semibold text-gray-900 dark:text-gray-100 mb-2">{{ model.name }}</div>
690690
<div class="text-xs text-gray-500 dark:text-gray-400 mb-2">{{ model.provider }}</div>
691691
@@ -744,7 +744,7 @@ const ModelTooltip = {
744744
const ModelSelector = {
745745
template: `
746746
<!-- Model Selector Button -->
747-
<div class="pl-1.5 flex space-x-2">
747+
<div class="pl-1.5 relative">
748748
<button type="button" @click="openDialog"
749749
class="select-none flex items-center space-x-2 px-3 py-2 rounded-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-900 hover:bg-gray-50 dark:hover:bg-gray-800 text-sm text-gray-700 dark:text-gray-300 transition-colors w-full md:w-auto md:min-w-48 max-w-96"
750750
@mouseenter="showTooltip = true"

0 commit comments

Comments
 (0)