From 5e78b64e350e07ee14d54d22312cd71fbfc7f32b Mon Sep 17 00:00:00 2001 From: Younsang Na <77400131+nayounsang@users.noreply.github.com> Date: Wed, 9 Sep 2026 15:20:51 +0900 Subject: [PATCH] fix(stage-tamagotchi): prevent controls island overflow in small windows with scroll (#2474) ## Description ### As-is Depending on the size, the Controls Island area gets cut off, making the buttons in the cropped area inaccessible. ### To-be The Controls Island is managed via scrolling, allowing interaction with buttons regardless of the size. If the main controls also exceed the available space, the entire Controls Island becomes scrollable. Horizontal scrolling is available for narrow windows. #### narrow & smaill https://github.com/user-attachments/assets/1a44ff4f-8fe2-4a05-96a8-59ebf7dafcff #### somewhat generous size https://github.com/user-attachments/assets/c73dbee4-8c8f-4937-ae1a-eda00178274c ## Linked Issues close #2400 ## Additional Context Although the size is somewhat less than ideal, the issue has been resolved, and this serves as a universal solution. --------- Co-authored-by: leafyy --- .../control-button-tooltip.vue | 39 +- .../controls-island-auth-button.test.ts | 49 +- .../controls-island-auth-button.vue | 21 +- .../controls-island-overflow.browser.test.ts | 523 +++++++++++++++++ .../controls-island-profile-picker.vue | 5 + .../controls-island-stop-speaking.test.ts | 1 + .../stage-islands/controls-island/index.vue | 533 ++++++++++-------- .../use-controls-island-layout.ts | 89 +++ .../src/renderer/pages/index.vue | 10 +- .../misc/profile-switcher-popover.vue | 173 ++++-- 10 files changed, 1123 insertions(+), 320 deletions(-) create mode 100644 apps/stage-tamagotchi/src/renderer/components/stage-islands/controls-island/controls-island-overflow.browser.test.ts create mode 100644 apps/stage-tamagotchi/src/renderer/components/stage-islands/controls-island/use-controls-island-layout.ts diff --git a/apps/stage-tamagotchi/src/renderer/components/stage-islands/controls-island/control-button-tooltip.vue b/apps/stage-tamagotchi/src/renderer/components/stage-islands/controls-island/control-button-tooltip.vue index 3ffd402ef..248afdec9 100644 --- a/apps/stage-tamagotchi/src/renderer/components/stage-islands/controls-island/control-button-tooltip.vue +++ b/apps/stage-tamagotchi/src/renderer/components/stage-islands/controls-island/control-button-tooltip.vue @@ -1,7 +1,7 @@