fix disabled server icon background

This commit is contained in:
tdgao
2026-03-23 13:23:16 -06:00
parent 1999e79188
commit eb82562c86
2 changed files with 7 additions and 5 deletions
@@ -1,6 +1,6 @@
<template>
<div
class="experimental-styles-within flex size-16 shrink-0 overflow-hidden rounded-xl border-[1px] border-solid border-button-border bg-button-bg shadow-sm"
class="experimental-styles-within relative flex size-16 shrink-0 overflow-hidden rounded-xl border-[1px] border-solid border-button-border bg-button-bg shadow-sm"
>
<client-only>
<img
@@ -16,6 +16,7 @@
:src="MinecraftServerIcon"
/>
</client-only>
<div v-if="disabled" class="absolute inset-0 bg-surface-1 opacity-50" />
</div>
</template>
@@ -24,5 +25,6 @@ import { MinecraftServerIcon } from '@modrinth/assets'
defineProps<{
image: string | undefined
disabled?: boolean
}>()
</script>