From cb177df0375994ebb7b042c8b98eb9fa355e1a18 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Sun, 3 Sep 2023 23:01:03 +0800 Subject: [PATCH] fix: order block's own properties by id (squuid time) --- src/main/frontend/components/property.cljs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/frontend/components/property.cljs b/src/main/frontend/components/property.cljs index 0624e14b4..a46998664 100644 --- a/src/main/frontend/components/property.cljs +++ b/src/main/frontend/components/property.cljs @@ -274,7 +274,7 @@ (reset! *property-value nil))} [:div.flex.flex-row.items-center (ui/icon "circle-plus" {:size 16}) - [:div.ml-1.text-sm "Add property"]]] + [:div.ml-1 "Add property"]]] :else [:div {:style {:height 28}}]))) @@ -314,7 +314,7 @@ :data-class-schema (boolean class-schema?) :title (str "Configure property: " (:block/original-name property)) :on-click toggle-fn} - [:div.ml-1.text-sm (:block/original-name property)]]) + [:div.ml-1 (:block/original-name property)]]) (fn [{:keys [toggle-fn]}] (when (not config/publishing?) [:div.p-8 @@ -406,7 +406,8 @@ (seq alias-properties) (seq properties)) remove-built-in-properties - (remove (fn [[id _]] ((set classes-properties) id)))) + (remove (fn [[id _]] ((set classes-properties) id))) + (sort-by first)) one-class? (concat (map (fn [id] [id (get properties id)]) classes-properties))) new-property? (= edit-input-id (state/sub :ui/new-property-input-id))