Center scaled design object previews

This commit is contained in:
thePR0M3TH3AN committed 2026-05-23 19:47:47 -04:00
1 parent 9423f6c2b3
commit 473e7f6714
1 file changed
+1 -1
+1 -1
View File
@@ -7651,7 +7651,7 @@
const frame = document.createElement('div');
frame.className = 'designObjectFrame';
const fitWrap = document.createElement('div');
fitWrap.style.cssText = 'position:absolute;inset:0;overflow:hidden;pointer-events:none';
fitWrap.style.cssText = 'position:absolute;inset:0;overflow:hidden;pointer-events:none;display:flex;align-items:center;justify-content:center';
frame.appendChild(fitWrap);
try {
renderDesignPayloadPreview(fitWrap, layer.design?.payload || {}, { compact: true, transparentPixelArt: true });