Switch team clicking in the whole selector

This commit is contained in:
Andrés Moya 2020-11-26 15:09:01 +01:00 committed by Andrey Antukh
parent 40240d294a
commit 4c1150bf78
2 changed files with 3 additions and 3 deletions

View file

@ -77,6 +77,7 @@
} }
.current-team { .current-team {
cursor: pointer;
display: flex; display: flex;
flex-grow: 1; flex-grow: 1;
font-size: $fs14; font-size: $fs14;
@ -118,7 +119,6 @@
.switch-icon { .switch-icon {
display: flex; display: flex;
align-items: center; align-items: center;
cursor: pointer;
svg { svg {
width: 10px; width: 10px;

View file

@ -322,7 +322,7 @@
[:div.sidebar-team-switch [:div.sidebar-team-switch
[:div.switch-content [:div.switch-content
[:div.current-team [:div.current-team {:on-click #(reset! show-teams-ddwn? true)}
(if (:is-default team) (if (:is-default team)
[:div.team-name [:div.team-name
[:span.team-icon i/logo-icon] [:span.team-icon i/logo-icon]
@ -332,7 +332,7 @@
[:img {:src (cfg/resolve-media-path (:photo team))}]] [:img {:src (cfg/resolve-media-path (:photo team))}]]
[:span.team-text {:title (:name team)} (:name 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]] i/arrow-down]]
(when-not (:is-default team) (when-not (:is-default team)