mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 14:27:40 +00:00
Prevent sidebar tool buttons from flashing during collapse. ## What changed - Clip the sidebar tool-buttons container during hover collapse so tab labels don't render outside the header. - Keep the existing width/opacity transition so the title still reclaims space. ## Why - Motivation: the hover-out transition shrinks the tool-buttons wrapper to `w-0` while the tabs keep their intrinsic width, causing a brief clipped flash on the right edge of the sidebar. - Why this approach: clipping during the transition is the smallest change that fixes the visual artifact without altering layout timing or hover behavior. - Tradeoffs / limitations: no functional change; the buttons are only clipped while collapsing. ## Evidence - Issues: n/a - Tests: Not run (lint/typecheck only; not evidence) - Screenshots/video: https://github.com/user-attachments/assets/3af4d735-6330-4521-b4cf-45eb4b09f9ba ## References - Related PRs: n/a