mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-10-02 11:56:44 -05:00
Use translucent stage image backgrounds while images load
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<button :disabled="loading || !stage" class="block relative" @click.prevent="open = true">
|
||||
<div class="aspect-2/1 overflow-hidden" :class="[imgClass, { 'bg-zinc-700': !loading && lowRes }]">
|
||||
<div class="aspect-2/1 overflow-hidden" :class="[imgClass, { 'bg-white/20': !loading && lowRes }]">
|
||||
<img v-if="!loading && lowRes" :src="lowRes" width="400" height="200" />
|
||||
<SkeletonBlock v-else class="h-full rounded-none" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user