mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 12:05:53 +00:00
fix disabled server icon background
This commit is contained in:
@@ -15,18 +15,18 @@
|
||||
v-if="isProvisioning || isUpgrading"
|
||||
class="flex size-16 items-center justify-center rounded-xl border-[1px] border-solid border-button-border bg-button-bg shadow-sm"
|
||||
>
|
||||
<ServerIcon class="opacity-70" :image="image ?? undefined" />
|
||||
<ServerIcon :image="image ?? undefined" :disabled="isDisabled" />
|
||||
<SpinnerIcon class="size-8 animate-spin absolute" />
|
||||
</div>
|
||||
<div
|
||||
v-else-if="status === 'suspended'"
|
||||
class="flex size-16 items-center justify-center rounded-xl border-[1px] border-solid border-button-border bg-button-bg shadow-sm"
|
||||
>
|
||||
<ServerIcon class="opacity-70" :image="image ?? undefined" />
|
||||
<ServerIcon :image="image ?? undefined" :disabled="isDisabled" />
|
||||
<LockIcon class="size-8 absolute" />
|
||||
</div>
|
||||
<ServerIcon v-else :image="image ?? undefined" />
|
||||
<div class="ml-4 flex flex-col gap-2.5" :class="{ 'opacity-70': isDisabled }">
|
||||
<ServerIcon v-else :image="image ?? undefined" :disabled="isDisabled" />
|
||||
<div class="ml-4 flex flex-col gap-2.5" :class="{ 'grayscale opacity-75': isDisabled }">
|
||||
<div class="flex flex-row items-center gap-2">
|
||||
<h2 class="m-0 text-xl font-bold text-contrast">{{ name }}</h2>
|
||||
<div
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user