From 2d81ddcbde1ddb73236624f4300582a50e397fc1 Mon Sep 17 00:00:00 2001 From: Devon Zuegel Date: Mon, 6 Dec 2021 16:21:28 -0500 Subject: [PATCH] fix: make Continue? modals more consistent --- src/main/frontend/components/repo.cljs | 12 ++++++++---- src/main/frontend/handler.cljs | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/main/frontend/components/repo.cljs b/src/main/frontend/components/repo.cljs index 002e682e7..c0d5f2c80 100644 --- a/src/main/frontend/components/repo.cljs +++ b/src/main/frontend/components/repo.cljs @@ -240,10 +240,12 @@ [:div {:style {:max-width 700}} [:p "Refresh detects and processes files modified on your disk and diverged from the actual Logseq page content. Continue?"] (ui/button - "Yes" - :on-click (fn [] - (state/close-modal!) - (nfs-handler/refresh! (state/get-current-repo) refresh-cb)))]]))}})) + "Yes" + :autoFocus "on" + :large? true + :on-click (fn [] + (state/close-modal!) + (nfs-handler/refresh! (state/get-current-repo) refresh-cb)))]]))}})) {:title (t :re-index) :hover-detail (t :re-index-detail) :options {:on-click @@ -254,6 +256,8 @@ [:p "Re-index will discard the current graph, and then processes all the files again as they are currently stored on disk. You will lose unsaved changes and it might take a while. Continue?"] (ui/button "Yes" + :autoFocus "on" + :large? true :on-click (fn [] (state/close-modal!) (repo-handler/re-index! diff --git a/src/main/frontend/handler.cljs b/src/main/frontend/handler.cljs index 0c1d1832c..595e3506a 100644 --- a/src/main/frontend/handler.cljs +++ b/src/main/frontend/handler.cljs @@ -248,9 +248,9 @@ (.preventDefault e) (state/pub-event! [:modal/show [:div - [:h1.title "Reload Logseq?"] + [:p "Reload Logseq?"] (ui/button - [:span "Yes " (ui/render-keyboard-shortcut ["enter"])] + "Yes" :autoFocus "on" :large? true :on-click (fn []