mirror of
https://github.com/modrinth/code.git
synced 2026-09-04 22:10:15 +00:00
fix: tooltip hover area
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
<template #option="{ item, isSelected }">
|
<template #option="{ item, isSelected }">
|
||||||
<div
|
<div
|
||||||
v-tooltip="gameVersionOptionTooltip(item.value)"
|
v-tooltip="gameVersionOptionTooltip(item.value)"
|
||||||
class="flex w-full items-center justify-between gap-2"
|
class="flex w-full items-center justify-between gap-2 px-4 py-2"
|
||||||
:class="{
|
:class="{
|
||||||
'text-brand-red opacity-40': isGameVersionUnavailable(item.value),
|
'text-brand-red opacity-40': isGameVersionUnavailable(item.value),
|
||||||
'text-green': isSelected,
|
'text-green': isSelected,
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
<template #option="{ item, isSelected }">
|
<template #option="{ item, isSelected }">
|
||||||
<div
|
<div
|
||||||
v-tooltip="platformOptionTooltip(item.value, item.label)"
|
v-tooltip="platformOptionTooltip(item.value, item.label)"
|
||||||
class="flex w-full items-center justify-between gap-2"
|
class="flex w-full items-center justify-between gap-2 px-4 py-2"
|
||||||
:class="{
|
:class="{
|
||||||
'text-brand-red opacity-40': isPlatformUnavailable(item.value),
|
'text-brand-red opacity-40': isPlatformUnavailable(item.value),
|
||||||
'text-green': isSelected,
|
'text-green': isSelected,
|
||||||
@@ -273,6 +273,7 @@ const gameVersionOptions = computed<ComboboxOption<string>[]>(() => {
|
|||||||
return filteredGameVersions.value.map((gameVersion) => ({
|
return filteredGameVersions.value.map((gameVersion) => ({
|
||||||
value: gameVersion,
|
value: gameVersion,
|
||||||
label: gameVersion,
|
label: gameVersion,
|
||||||
|
class: '!px-0 !py-1',
|
||||||
}))
|
}))
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -283,6 +284,7 @@ const platformOptions = computed<ComboboxOption<string>[]>(() => {
|
|||||||
.map((platform) => ({
|
.map((platform) => ({
|
||||||
value: platform,
|
value: platform,
|
||||||
label: loaderLabel(platform),
|
label: loaderLabel(platform),
|
||||||
|
class: '!px-0 !py-1',
|
||||||
}))
|
}))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user