From 0afddac5d104812ccc7332bffed23ffc101fb281 Mon Sep 17 00:00:00 2001 From: Akshay Gupta Date: Tue, 18 Jun 2024 23:52:54 +0530 Subject: [PATCH] Fix/ min and max height-width application --- .../src/app/main/ui/workspace/tokens/context_menu.cljs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs b/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs index 69b68be330..0b90a0e504 100644 --- a/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs @@ -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})))