Fix but better (#3376)

Signed-off-by: felix <60808107+ItsFelix5@users.noreply.github.com>
This commit is contained in:
felix
2025-03-11 20:46:31 +01:00
committed by GitHub
parent d6c8af7ed5
commit 366f528853

View File

@@ -8,7 +8,7 @@
circle: circle,
'no-shadow': noShadow,
raised: raised,
pixelated: raised,
pixelated: pixelated,
}"
:src="src"
:alt="alt"
@@ -96,7 +96,7 @@ const LEGACY_PRESETS = {
const cssSize = computed(() => LEGACY_PRESETS[props.size] ?? props.size)
function updatePixelated() {
if (img.value && img.value.naturalWidth && img.value.naturalWidth <= 96) {
if (img.value && img.value.naturalWidth && img.value.naturalWidth < 32) {
pixelated.value = true
} else {
pixelated.value = false