From 476fba4fc3de0e47ac767c958488fdcc3f482c6c Mon Sep 17 00:00:00 2001 From: Mega Yu Date: Fri, 10 Apr 2026 23:14:30 +0800 Subject: [PATCH] refactor(quick-add): simplify logical and remove duplicated button --- src/main/frontend/components/quick_add.cljs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/frontend/components/quick_add.cljs b/src/main/frontend/components/quick_add.cljs index 2a12416497..f823366924 100644 --- a/src/main/frontend/components/quick_add.cljs +++ b/src/main/frontend/components/quick_add.cljs @@ -49,14 +49,11 @@ (when-not mobile? (shui/shortcut ["mod" "e"])) (t :editor.quick-add/add-to-today))]] [:div.ls-quick-add.flex.flex-1.flex-col.w-full.gap-4 - (when-not (util/mobile?) + (when-not mobile? [:div.flex.flex-row.justify-between.gap-4.items-center - {:class (if mobile? - "pt-4" - "border-b pb-4")} + {:class "border-b pb-4"} [:div.font-medium - (t :editor.quick-add/title)] - add-button]) + (t :editor.quick-add/title)]]) (if mobile? [:div.w-full.mt-4 (page-blocks add-page)]