From 4d3142e82683bacfc6bc0bf1db9a2087c4ad8d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Tue, 16 Mar 2021 11:24:09 +0100 Subject: [PATCH] :bug: Fix some visual issues in dashboard --- frontend/resources/locales.json | 11 ----------- .../styles/main/partials/dashboard-grid.scss | 4 +--- frontend/src/app/main/ui/dashboard/files.cljs | 2 +- frontend/src/app/main/ui/dashboard/projects.cljs | 4 +++- 4 files changed, 5 insertions(+), 16 deletions(-) diff --git a/frontend/resources/locales.json b/frontend/resources/locales.json index 294d0bffd..29c0ce61b 100644 --- a/frontend/resources/locales.json +++ b/frontend/resources/locales.json @@ -444,17 +444,6 @@ }, "used-in" : [ "src/app/main/ui/dashboard/sidebar.cljs" ] }, - "dashboard.draft-title" : { - "translations" : { - "ca" : "Esborrany", - "en" : "Draft", - "es" : "Borrador", - "fr" : "Brouillon", - "ru" : "Черновик", - "zh_cn" : "草稿" - }, - "used-in" : [ "src/app/main/ui/dashboard/files.cljs" ] - }, "dashboard.duplicate" : { "translations" : { "en" : "Duplicate", diff --git a/frontend/resources/styles/main/partials/dashboard-grid.scss b/frontend/resources/styles/main/partials/dashboard-grid.scss index ff7a7c277..d76171832 100644 --- a/frontend/resources/styles/main/partials/dashboard-grid.scss +++ b/frontend/resources/styles/main/partials/dashboard-grid.scss @@ -23,7 +23,7 @@ .grid-item { align-items: center; - border: 1px solid lighten($color-gray-20, 13%); + border: 2px solid lighten($color-gray-20, 13%); border-radius: $br-small; cursor: pointer; display: flex; @@ -177,8 +177,6 @@ background-color: $color-white; &:hover { - border: 2px solid $color-primary; - .project-th-actions { opacity: 1; } diff --git a/frontend/src/app/main/ui/dashboard/files.cljs b/frontend/src/app/main/ui/dashboard/files.cljs index f140836cf..3d845a40f 100644 --- a/frontend/src/app/main/ui/dashboard/files.cljs +++ b/frontend/src/app/main/ui/dashboard/files.cljs @@ -56,7 +56,7 @@ [:header.dashboard-header (if (:is-default project) [:div.dashboard-title - [:h1 (t locale "dashboard.draft-title")]] + [:h1 (t locale "labels.drafts")]] (if (:edition @local) [:& inline-edition {:content (:name project) diff --git a/frontend/src/app/main/ui/dashboard/projects.cljs b/frontend/src/app/main/ui/dashboard/projects.cljs index 5c30e8b10..194eede59 100644 --- a/frontend/src/app/main/ui/dashboard/projects.cljs +++ b/frontend/src/app/main/ui/dashboard/projects.cljs @@ -129,7 +129,9 @@ :on-end on-edit}] [:h2 {:on-click on-nav :on-context-menu on-menu-click} - (:name project)]) + (if (:is-default project) + (tr "labels.drafts") + (:name project))]) [:& project-menu {:project project :show? (:menu-open @local) :left (:x (:menu-pos @local))