mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 00:50:05 +00:00
Only some widgets actually want to grow. Flex makes this difficult. This PR sets up a `widget-expands` class that widgets can use to indicate that they want to dynamically grow and applies it to the textarea widget <img width="709" height="860" alt="image" src="https://github.com/user-attachments/assets/721d99e5-5939-4531-91b5-1cda69d4e8ed" /> There's a potential alternative avenue with using `flex-shrink` instead of `flex-grow`, and using `min-content` for `calculateIntrinsicSize`, but I've been poking around with that for a while with no success. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6194-Introduce-grow-parent-class-for-widgets-2946d73d3650812f9d03c305ab04e212) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions <github-actions@github.com>