From a918e5b6f1b0855b138f8f3387cf61b97549f990 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Sun, 3 Aug 2025 16:58:19 +0800 Subject: [PATCH 1/2] enhance(ux): show edit button instead of 00:00 for datetime property --- src/main/frontend/components/property/value.cljs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/frontend/components/property/value.cljs b/src/main/frontend/components/property/value.cljs index 7eff1f0027..8da9fd271a 100644 --- a/src/main/frontend/components/property/value.cljs +++ b/src/main/frontend/components/property/value.cljs @@ -440,9 +440,11 @@ hours (.getHours date) minutes (.getMinutes date)] [:span.select-none - (str (util/zero-pad hours) - ":" - (util/zero-pad minutes))])]] + (if (= 0 hours minutes) + (ui/icon "edit" {:size 14 :class "text-muted-foreground hover:text-foreground align-middle"}) + (str (util/zero-pad hours) + ":" + (util/zero-pad minutes)))])]] (if (or repeated-task? (contains? #{:logseq.property/deadline :logseq.property/scheduled} property-id)) (overdue date content) content)))) From 3025c94d28c888708a23653417c57a4514ade376 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Mon, 4 Aug 2025 20:40:53 +0800 Subject: [PATCH 2/2] fix: checkbox property value should be aligned center --- src/main/frontend/components/property.cljs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/frontend/components/property.cljs b/src/main/frontend/components/property.cljs index 2ec6993f48..6515a3c953 100644 --- a/src/main/frontend/components/property.cljs +++ b/src/main/frontend/components/property.cljs @@ -490,7 +490,10 @@ (let [property-desc (when-not (= (:db/ident property) :logseq.property/description) (:logseq.property/description property))] - [:div.ls-block.property-value-container.flex.flex-row.gap-1.items-start + [:div.ls-block.property-value-container.flex.flex-row.gap-1 + {:class (if (contains? #{:checkbox :date :datetime} type) + "items-center" + "items-start")} (when-not (or block? (and property-desc (:class-schema? opts))) [:div.flex.items-center {:style {:height 28}}