Merge pull request #175 from tokens-studio/fix-min-max-height-error

Fix/ min and max height-width application
This commit is contained in:
Akshay Gupta
2024-06-19 12:58:43 +05:30
committed by GitHub

View File

@@ -192,11 +192,13 @@
:on-update-shape update-shape-dimensions
:attributes attributes)
(set/superset? {:layout-item-min-w :layout-item-max-w
:layout-item-min-h :layout-item-max-h} attributes)
(set/superset? #{:layout-item-min-w :layout-item-max-w
:layout-item-min-h :layout-item-max-h} attributes)
(assoc token-type-props
:on-update-shape update-layout-sizing-limits
:attributes attributes))]
:attributes attributes)
:else token-type-props)]
(wtc/on-apply-token {:token token
:token-type-props updated-token-type-props
:selected-shapes selected-shapes})))