From d2efb81c5216260327e944e8146d7e201ceeee19 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Mon, 7 Aug 2023 13:02:04 +0800 Subject: [PATCH] Style tweaks --- src/main/frontend/components/property.cljs | 6 +++--- src/main/frontend/components/property.css | 4 ++-- src/main/frontend/modules/outliner/datascript.cljs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/frontend/components/property.cljs b/src/main/frontend/components/property.cljs index 377132d79c..33cf6d158f 100644 --- a/src/main/frontend/components/property.cljs +++ b/src/main/frontend/components/property.cljs @@ -275,13 +275,13 @@ [:div.flex.flex-1 (case type (list :number :url) - [:div.h-8 (select block property select-opts)] + [:div.h-6 (select block property select-opts)] :page - [:div.h-8 (select-page block property select-opts)] + [:div.h-6 (select-page block property select-opts)] :block - [:div.h-8 (select-block block property select-opts)] + [:div.h-6 (select-block block property select-opts)] (let [config {:editor-opts {:on-key-down diff --git a/src/main/frontend/components/property.css b/src/main/frontend/components/property.css index 12a0e5daad..601144f169 100644 --- a/src/main/frontend/components/property.css +++ b/src/main/frontend/components/property.css @@ -56,7 +56,7 @@ } .cp__select-input { - padding: 0.25em; + padding: 0; } .ls-block, .editor-wrapper { @@ -78,7 +78,7 @@ } .block-main-container .ls-properties-area { - margin-top: 0.5em; + margin-top: 0.25em; gap: 0; diff --git a/src/main/frontend/modules/outliner/datascript.cljs b/src/main/frontend/modules/outliner/datascript.cljs index 654399ab4c..d1949d76b1 100644 --- a/src/main/frontend/modules/outliner/datascript.cljs +++ b/src/main/frontend/modules/outliner/datascript.cljs @@ -166,8 +166,8 @@ (not (contains? (:file/unlinked-dirs @state/state) (config/get-repo-dir repo))))) - (prn :debug "Outliner transact:") - (frontend.util/pprint {:txs txs :opts opts}) + ;; (prn :debug "Outliner transact:") + ;; (frontend.util/pprint {:txs txs :opts opts}) (try (let [repo (get opts :repo (state/get-current-repo))