From ed0d9e1cf51b6079c9f7ca1d9e0fd76a4ab37854 Mon Sep 17 00:00:00 2001 From: Akshay Gupta Date: Wed, 5 Jun 2024 13:49:18 +0530 Subject: [PATCH] initial dimensions context menu --- .../src/app/main/ui/workspace/tokens/context_menu.cljs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 a1cde4010..dee0d9139 100644 --- a/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs @@ -125,6 +125,16 @@ {:title "Min height" :attributes #{:layout-item-min-h}} {:title "Max height" :attributes #{:layout-item-max-h}}]) + :dimensions (attributes->actions + apply-sizing-token + [{:title "Spacing" :attributes #{:width :height}} + {:title "Sizing" :attributes #{:width}} + {:title "Border Radius" :attributes #{:height}} + {:title "Border Width" :attributes #{:width}} + {:title "x" :attributes #{:width}} + {:title "y" :attributes #{:width}} + {:title "Background blur" :attributes #{:width}}]) + []))) (defn generate-menu-entries [{:keys [token-id token-type-props token-type selected-shapes] :as context-data}]