From 4c1150bf785c5aa974f656cf8c0cc22d6d6f662f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Thu, 26 Nov 2020 15:09:01 +0100 Subject: [PATCH] :sparkles: Switch team clicking in the whole selector --- .../resources/styles/main/partials/dashboard-sidebar.scss | 2 +- frontend/src/app/main/ui/dashboard/sidebar.cljs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/resources/styles/main/partials/dashboard-sidebar.scss b/frontend/resources/styles/main/partials/dashboard-sidebar.scss index 658411737d..1b649be296 100644 --- a/frontend/resources/styles/main/partials/dashboard-sidebar.scss +++ b/frontend/resources/styles/main/partials/dashboard-sidebar.scss @@ -77,6 +77,7 @@ } .current-team { + cursor: pointer; display: flex; flex-grow: 1; font-size: $fs14; @@ -118,7 +119,6 @@ .switch-icon { display: flex; align-items: center; - cursor: pointer; svg { width: 10px; diff --git a/frontend/src/app/main/ui/dashboard/sidebar.cljs b/frontend/src/app/main/ui/dashboard/sidebar.cljs index 73554a5146..193c72b3b8 100644 --- a/frontend/src/app/main/ui/dashboard/sidebar.cljs +++ b/frontend/src/app/main/ui/dashboard/sidebar.cljs @@ -322,7 +322,7 @@ [:div.sidebar-team-switch [:div.switch-content - [:div.current-team + [:div.current-team {:on-click #(reset! show-teams-ddwn? true)} (if (:is-default team) [:div.team-name [:span.team-icon i/logo-icon] @@ -332,7 +332,7 @@ [:img {:src (cfg/resolve-media-path (:photo team))}]] [:span.team-text {:title (:name team)} (:name team)]]) - [:span.switch-icon {:on-click #(reset! show-teams-ddwn? true)} + [:span.switch-icon i/arrow-down]] (when-not (:is-default team)