From 5685ae67a23c947c7485fb2f81e738520549f724 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Sun, 17 Sep 2023 18:06:11 +0800 Subject: [PATCH] [front/ux] update load more button --- src/main/frontend/views.cljs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/frontend/views.cljs b/src/main/frontend/views.cljs index b6f16b8..bac8925 100644 --- a/src/main/frontend/views.cljs +++ b/src/main/frontend/views.cljs @@ -67,10 +67,10 @@ {:dangerouslySetInnerHTML {:__html (:content ans)}}]])] (if end? - [:p "answers end here."] + [:p {:class "mt-5"} "answers end here."] (if (:comment loading) - [:p "loading comment..."] - [:div + [:p {:class "mt-5"} "loading comment..."] + [:div {:class "mt-5"} [:button {:type "button" :href (-> post :paging :next) :class "btn btn-blue" @@ -78,7 +78,8 @@ :question {:id (-> post :paging :question_id)} {:cursor (-> post :paging :cursor) - :session_id (-> post :paging :session_id)})}]]))]))) + :session_id (-> post :paging :session_id)})} + "Load More"]]))]))) (defn nav [{:keys [current-route]}] (let [active #(when (= % (-> current-route :data :name)) "> ")]