From 2c2755b35e5de210dc5a1e877c98c66cba3ba8bc Mon Sep 17 00:00:00 2001 From: Eva Date: Mon, 9 Jan 2023 14:26:24 +0100 Subject: [PATCH] :bug: Fix allow names selection in dashboard --- .../resources/styles/main/partials/dashboard-header.scss | 2 ++ .../resources/styles/main/partials/dashboard-sidebar.scss | 2 +- .../resources/styles/main/partials/dashboard-team.scss | 7 ++++++- frontend/resources/styles/main/partials/dashboard.scss | 4 +++- frontend/src/app/main/ui/dashboard/projects.cljs | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/frontend/resources/styles/main/partials/dashboard-header.scss b/frontend/resources/styles/main/partials/dashboard-header.scss index 8da45d989..277920564 100644 --- a/frontend/resources/styles/main/partials/dashboard-header.scss +++ b/frontend/resources/styles/main/partials/dashboard-header.scss @@ -13,6 +13,7 @@ padding: $size-1 $size-4 $size-1 $size-2; position: relative; z-index: 10; + user-select: none; &.team { display: grid; grid-template-columns: 20% 1fr 20%; @@ -85,6 +86,7 @@ font-size: $fs22; font-weight: 600; z-index: 10; + user-select: all; } .context-menu.is-open { diff --git a/frontend/resources/styles/main/partials/dashboard-sidebar.scss b/frontend/resources/styles/main/partials/dashboard-sidebar.scss index 0298cb704..f04d4ced6 100644 --- a/frontend/resources/styles/main/partials/dashboard-sidebar.scss +++ b/frontend/resources/styles/main/partials/dashboard-sidebar.scss @@ -186,6 +186,7 @@ flex-direction: column; overflow-y: auto; margin: 0; + user-select: none; // TODO: should be deprecated / unclear name &.dashboard-common { @@ -223,7 +224,6 @@ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - user-select: none; } &::before { diff --git a/frontend/resources/styles/main/partials/dashboard-team.scss b/frontend/resources/styles/main/partials/dashboard-team.scss index 0847c8988..ed8733583 100644 --- a/frontend/resources/styles/main/partials/dashboard-team.scss +++ b/frontend/resources/styles/main/partials/dashboard-team.scss @@ -106,6 +106,9 @@ border: 1px dashed $color-gray-20; margin-top: 16px; } + .table-header { + user-select: none; + } .table-row { background-color: $color-white; @@ -148,9 +151,11 @@ &.roles { flex-grow: 1; - user-select: none; cursor: default; position: relative; + .rol-label { + user-select: none; + } .rol-selector { &.has-priv { border: 1px solid $color-gray-20; diff --git a/frontend/resources/styles/main/partials/dashboard.scss b/frontend/resources/styles/main/partials/dashboard.scss index 2dce56ef5..f1c1eba42 100644 --- a/frontend/resources/styles/main/partials/dashboard.scss +++ b/frontend/resources/styles/main/partials/dashboard.scss @@ -164,8 +164,10 @@ flex: 1 0 0; margin-right: $size-4; overflow-y: auto; - user-select: none; width: 100%; + &.dashboard-projects { + user-select: none; + } &.no-bg { background-color: transparent; } diff --git a/frontend/src/app/main/ui/dashboard/projects.cljs b/frontend/src/app/main/ui/dashboard/projects.cljs index 30aed2456..dad357e67 100644 --- a/frontend/src/app/main/ui/dashboard/projects.cljs +++ b/frontend/src/app/main/ui/dashboard/projects.cljs @@ -407,7 +407,7 @@ [:& interface-walkthrough {:close-walkthrough close-walkthrough}])]) - [:div.dashboard-container.no-bg + [:div.dashboard-container.no-bg.dashboard-projects (for [{:keys [id] :as project} projects] (let [files (when recent-map (->> (vals recent-map)