From f227e926d6ec5a83bab68e8515054575f286ce4e Mon Sep 17 00:00:00 2001 From: jelveh Date: Tue, 21 Jul 2026 17:23:37 -0700 Subject: [PATCH] feat(gui): cap the open-morph ghost icon at 2x, dissolving in place MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The tile icon no longer flies toward the window center nor grows to full contain-fit (10x+ reads as a giant blurry sticker): it enlarges in place on its own slot and its growth is capped so the fade-out completes right around 200% of its size — the window alone carries the motion and the rest of the growth. --- src/gui/src/UI/UIWindow.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/src/UI/UIWindow.js b/src/gui/src/UI/UIWindow.js index 162186c28..4cf700cc2 100644 --- a/src/gui/src/UI/UIWindow.js +++ b/src/gui/src/UI/UIWindow.js @@ -4108,7 +4108,7 @@ function morph_window_from_tile (el_window, tile) { // away from its slot, and grown to full contain-fit (easily 10x+) it // reads as a giant blurry sticker. So it stays put and its growth is // capped: it fades out completely by ~97% of the decelerating path, - // right around 250% of its size, and the window alone carries the + // right around 200% of its size, and the window alone carries the // motion and the rest of the growth. const ghost = icon.cloneNode(true); ghost.style.position = 'fixed'; @@ -4129,7 +4129,7 @@ function morph_window_from_tile (el_window, tile) { ghost.style.opacity = '1'; ghost.style.transform = 'none'; const ghost_scale = Math.min( - 2.5, + 2, win_rect.width / icon_rect.width, win_rect.height / icon_rect.height, );