Просмотр исходного кода

fix: make the title of sidebar item clickable. #4983

maxweilun1989 3 лет назад
Родитель
Сommit
250913e31e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/frontend/components/right_sidebar.cljs

+ 1 - 1
src/main/frontend/components/right_sidebar.cljs

@@ -127,8 +127,8 @@
            [:div.flex.flex-col
             [:div.flex.flex-row.justify-between
              [:div.flex.flex-row.justify-center
+              {:on-click #(state/sidebar-block-toggle-collapse! db-id)}
               [:a.opacity-50.hover:opacity-100.flex.items-center.pr-1
-               {:on-click #(state/sidebar-block-toggle-collapse! db-id)}
                (ui/rotating-arrow collapse?)]
               [:div.ml-1.font-medium
                title]]