Responsive?
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 34s

This commit is contained in:
2026-03-22 01:46:36 +01:00
parent ea473c6f35
commit dc427f5981
2 changed files with 24 additions and 5 deletions

View File

@@ -1,8 +1,7 @@
<template>
<img ref="sprite" v-show="loaded"
class="sprite pixelated"
:src="props.path"
:width="props.width">
:src="props.path">
</template>
<script setup lang="ts">
@@ -13,8 +12,7 @@ const props = defineProps<{
top?: string,
right?: string,
left?: string,
bottom?: string,
width: string
bottom?: string
}>();
const sprite = ref(null);
@@ -34,5 +32,14 @@ onMounted(() => {
.sprite {
position: absolute;
z-index: 1;
width: 1300px;
@media screen and (max-width: 900px) {
width: 650px;
}
@media screen and (max-width: 1200px) and (min-width: 900px) {
width: 975px;
}
}
</style>