You've already forked AstralRinth
forked from didirus/AstralRinth
Fix but better (#3376)
Signed-off-by: felix <60808107+ItsFelix5@users.noreply.github.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
circle: circle,
|
circle: circle,
|
||||||
'no-shadow': noShadow,
|
'no-shadow': noShadow,
|
||||||
raised: raised,
|
raised: raised,
|
||||||
pixelated: raised,
|
pixelated: pixelated,
|
||||||
}"
|
}"
|
||||||
:src="src"
|
:src="src"
|
||||||
:alt="alt"
|
:alt="alt"
|
||||||
@@ -96,7 +96,7 @@ const LEGACY_PRESETS = {
|
|||||||
const cssSize = computed(() => LEGACY_PRESETS[props.size] ?? props.size)
|
const cssSize = computed(() => LEGACY_PRESETS[props.size] ?? props.size)
|
||||||
|
|
||||||
function updatePixelated() {
|
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
|
pixelated.value = true
|
||||||
} else {
|
} else {
|
||||||
pixelated.value = false
|
pixelated.value = false
|
||||||
|
|||||||
Reference in New Issue
Block a user