[FEAT] More UI enhancements
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user