[FEAT] Updated packages, show sprite offset values in cells and preview, fixed modal position

This commit is contained in:
2025-11-17 00:47:23 +01:00
parent 6d4622e109
commit a5200a5cf0
5 changed files with 697 additions and 709 deletions

View File

@@ -97,6 +97,14 @@
</div>
</div>
</div>
<!-- Current frame offset display -->
<div v-if="props.sprites[currentFrameIndex]" class="mt-3 p-2 bg-gray-100 dark:bg-gray-700 rounded-md border border-gray-200 dark:border-gray-600">
<div class="flex items-center justify-between">
<span class="text-sm font-medium text-gray-700 dark:text-gray-300">Current Frame Offset:</span>
<span class="text-sm font-mono font-semibold text-cyan-600 dark:text-cyan-400">x: {{ props.sprites[currentFrameIndex].x }}, y: {{ props.sprites[currentFrameIndex].y }}</span>
</div>
</div>
</div>
<div class="mt-3 relative bg-gray-50 dark:bg-gray-800 border border-gray-300 dark:border-gray-700 rounded-lg mb-4 sm:mb-6 overflow-auto min-h-[300px] sm:min-h-[520px] shadow-sm hover:shadow-md transition-shadow duration-200">