[FEAT] More UI enhancements

This commit is contained in:
2025-11-23 01:48:05 +01:00
parent 56858701ef
commit b3f530870e
5 changed files with 25 additions and 18 deletions

View File

@@ -93,8 +93,8 @@
class="absolute text-[23px] leading-none font-mono text-cyan-600 dark:text-cyan-400 bg-white/90 dark:bg-gray-900/90 px-1 py-0.5 rounded-sm"
:style="{
// Position at bottom-right corner of each cell, scaled by zoom
left: `${((position.cellX + position.maxWidth) * zoom) - 2}px`,
top: `${((position.cellY + position.maxHeight) * zoom) - 2}px`,
left: `${(position.cellX + position.maxWidth) * zoom - 2}px`,
top: `${(position.cellY + position.maxHeight) * zoom - 2}px`,
transform: 'translate(-100%, -100%)',
}"
>
@@ -198,6 +198,7 @@
calculateMaxDimensions,
} = useDragSprite({
sprites: computed(() => props.layers.find(l => l.id === props.activeLayerId)?.sprites ?? []),
layers: toRef(props, 'layers'),
columns: toRef(props, 'columns'),
zoom,
allowCellSwap,