From 8af8c3364fa59b994317ed0d8f50987f1f3e670a Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Wed, 19 Aug 2026 19:36:41 +0100 Subject: [PATCH] Add minWidth and minHeight attributes to getNodeStyles function This update enhances the getNodeStyles function in templatemanager.js by adding support for minWidth and minHeight attributes. This allows for more flexible styling options when defining node styles, improving the overall template management capabilities. --- src/templates/templatemanager.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/templates/templatemanager.js b/src/templates/templatemanager.js index 198e8bd..340c0a8 100644 --- a/src/templates/templatemanager.js +++ b/src/templates/templatemanager.js @@ -63,9 +63,15 @@ function getNodeStyles(attributes) { if (attributes?.height) { styles += `height: ${attributes.height};`; } + if (attributes?.minWidth) { + styles += `min-width: ${attributes.minWidth};`; + } if (attributes?.maxWidth) { styles += `max-width: ${attributes.maxWidth};`; } + if (attributes?.minHeight) { + styles += `min-height: ${attributes.minHeight};`; + } if (attributes?.maxHeight) { styles += `max-height: ${attributes.maxHeight};`; }