Skip to content

Commit a5c29a9

Browse files
AustinMrozgithub-actions
andauthored
Introduce grow-parent class for widgets (#6194)
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 <[email protected]>
1 parent b44a395 commit a5c29a9

11 files changed

+2
-2
lines changed
26 Bytes
Loading
23 Bytes
Loading
Loading
27 Bytes
Loading
Loading
Loading
25 Bytes
Loading
26 Bytes
Loading
826 Bytes
Loading

src/renderer/extensions/vueNodes/components/NodeWidgets.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<div
2020
v-for="(widget, index) in processedWidgets"
2121
:key="`widget-${index}-${widget.name}`"
22-
class="group flex flex-1 items-stretch"
22+
class="group flex items-stretch has-[.widget-expands]:flex-1"
2323
>
2424
<!-- Widget Input Slot Dot -->
2525

0 commit comments

Comments
 (0)