From 245f840e7c5f4c5ec19f1676c81a146d9252c05e Mon Sep 17 00:00:00 2001 From: Jin Yi Date: Tue, 10 Mar 2026 14:17:22 +0900 Subject: [PATCH] fix: prevent HoneyToast from collapsing to minimum width in collapsed state (#9701) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Fix HoneyToast footer content (text + buttons) being squished when collapsed due to `sm:w-min` on the outer container. ## Changes - **What**: Replace `sm:w-min sm:min-w-0` with state-aware sizing (`sm:w-fit` when collapsed, `sm:w-[max(400px,40vw)]` when expanded) on the HoneyToast container. Add `gap-4` between footer text and buttons in ManagerProgressToast, `min-w-0` on text area, and `shrink-0` on button area to prevent overlap. ## Review Focus - HoneyToast is used in 3 places: ManagerProgressToast, ModelImportProgressDialog, AssetExportProgressDialog. The change moves width control from the inner content div to the outer container, which should have no negative impact on the other two consumers. ## As-is 스크린샷 2026-03-10 오전 10 40 52 ## To-be 스크린샷 2026-03-10 오후 1 46 18 스크린샷 2026-03-10 오후 1 46 10 스크린샷 2026-03-10 오후 1 46 02 --- src/components/honeyToast/HoneyToast.vue | 11 +++++++---- .../manager/components/ManagerProgressToast.vue | 8 +++++--- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/components/honeyToast/HoneyToast.vue b/src/components/honeyToast/HoneyToast.vue index 4ecc539258..a64246ad35 100644 --- a/src/components/honeyToast/HoneyToast.vue +++ b/src/components/honeyToast/HoneyToast.vue @@ -26,15 +26,18 @@ function toggle() { v-if="visible" role="status" aria-live="polite" - class="fixed inset-x-4 bottom-6 z-9999 mx-auto w-auto max-w-3xl overflow-hidden rounded-lg border border-border-default bg-base-background shadow-lg transition-all duration-300 sm:inset-x-0 sm:w-min sm:min-w-0" + :class=" + cn( + 'fixed inset-x-4 bottom-6 z-9999 mx-auto w-auto max-w-3xl overflow-hidden rounded-lg border border-border-default bg-base-background shadow-lg transition-all duration-300 sm:inset-x-0', + isExpanded ? 'sm:w-[max(400px,40vw)]' : 'sm:w-fit' + ) + " >
diff --git a/src/workbench/extensions/manager/components/ManagerProgressToast.vue b/src/workbench/extensions/manager/components/ManagerProgressToast.vue index f205920f4c..36d67508e4 100644 --- a/src/workbench/extensions/manager/components/ManagerProgressToast.vue +++ b/src/workbench/extensions/manager/components/ManagerProgressToast.vue @@ -245,8 +245,10 @@ onBeforeUnmount(() => {