diff --git a/frontend/resources/images/icons/pin.svg b/frontend/resources/images/icons/pin.svg index 0194c6401..46d71436a 100644 --- a/frontend/resources/images/icons/pin.svg +++ b/frontend/resources/images/icons/pin.svg @@ -1,4 +1,3 @@ - - + + - diff --git a/frontend/resources/styles/main/partials/dashboard-grid.scss b/frontend/resources/styles/main/partials/dashboard-grid.scss index 56f7d79e2..0b3e34417 100644 --- a/frontend/resources/styles/main/partials/dashboard-grid.scss +++ b/frontend/resources/styles/main/partials/dashboard-grid.scss @@ -121,7 +121,7 @@ span.date { color: $color-gray-30; - font-size: $fs14; + font-size: $fs13; overflow: hidden; text-overflow: ellipsis; width: 100%; diff --git a/frontend/resources/styles/main/partials/dashboard-sidebar.scss b/frontend/resources/styles/main/partials/dashboard-sidebar.scss index 621c3e4ed..6f8265ede 100644 --- a/frontend/resources/styles/main/partials/dashboard-sidebar.scss +++ b/frontend/resources/styles/main/partials/dashboard-sidebar.scss @@ -38,7 +38,7 @@ top: 50px; z-index: 12; max-height: 30rem; - min-width: 230px; + min-width: 234px; overflow-y: auto; } @@ -88,8 +88,8 @@ display: flex; height: 48px; align-items: center; - - &.action { + + &.action { .team-icon { border-radius: 50%; background-color: $color-gray-10; @@ -97,13 +97,13 @@ margin-right: 10px; padding: 6px; width: 24px; - + svg { height: 12px; width: 12px; } } - + &:hover { .team-icon { background-color: $color-primary; diff --git a/frontend/resources/styles/main/partials/dashboard.scss b/frontend/resources/styles/main/partials/dashboard.scss index 281026024..8fe5e2ebe 100644 --- a/frontend/resources/styles/main/partials/dashboard.scss +++ b/frontend/resources/styles/main/partials/dashboard.scss @@ -174,6 +174,10 @@ &.no-bg { background-color: transparent; } + &.dashboard-shared { + width: calc(100vw - 320px); + margin-right: 50px; + } &.search { margin-top: 10px; @@ -250,7 +254,7 @@ line-height: 1rem; font-weight: 400; color: $color-gray-60; - margin-left: .75rem; + margin-left: 0.75rem; } .project-actions { diff --git a/frontend/src/app/main/ui/dashboard/libraries.cljs b/frontend/src/app/main/ui/dashboard/libraries.cljs index be9df1fb8..4ccb6054b 100644 --- a/frontend/src/app/main/ui/dashboard/libraries.cljs +++ b/frontend/src/app/main/ui/dashboard/libraries.cljs @@ -29,10 +29,7 @@ width (mf/use-state nil) rowref (mf/use-ref) - itemsize (if (>= @width 1030) - 280 - 230) - + itemsize 330 ratio (if (some? @width) (/ @width itemsize) 0) nitems (mth/floor ratio) limit (min 10 nitems) @@ -50,27 +47,26 @@ #(st/emit! (dd/fetch-shared-files) (dd/clear-selected-files))) - (mf/use-effect - (fn [] - (let [node (mf/ref-val rowref) - mnt? (volatile! true) - sub (->> (wapi/observe-resize node) - (rx/observe-on :af) - (rx/subs (fn [entries] - (let [row (first entries) - row-rect (.-contentRect ^js row) - row-width (.-width ^js row-rect)] - (when @mnt? - (reset! width row-width))))))] - (fn [] - (vreset! mnt? false) - (rx/dispose! sub))))) + (mf/with-effect + (let [node (mf/ref-val rowref) + mnt? (volatile! true) + sub (->> (wapi/observe-resize node) + (rx/observe-on :af) + (rx/subs (fn [entries] + (let [row (first entries) + row-rect (.-contentRect ^js row) + row-width (.-width ^js row-rect)] + (when @mnt? + (reset! width row-width))))))] + (fn [] + (vreset! mnt? false) + (rx/dispose! sub)))) [:* - [:header.dashboard-header + [:header.dashboard-header {:ref rowref} [:div.dashboard-title [:h1 (tr "dashboard.libraries-title")]]] - [:section.dashboard-container.no-bg {:ref rowref} + [:section.dashboard-container.no-bg.dashboard-shared [:& grid {:files files :project default-project :origin :libraries diff --git a/frontend/translations/ar.po b/frontend/translations/ar.po index ea33e4b84..05f2d297d 100644 --- a/frontend/translations/ar.po +++ b/frontend/translations/ar.po @@ -230,7 +230,7 @@ msgstr "(نسخة)" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.create-new-team" -msgstr "+ إنشاء فريق جديد" +msgstr "إنشاء فريق جديد" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.default-team-name" diff --git a/frontend/translations/da.po b/frontend/translations/da.po index 7626c10c3..606f02a56 100644 --- a/frontend/translations/da.po +++ b/frontend/translations/da.po @@ -175,7 +175,7 @@ msgstr "(kopi)" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.create-new-team" -msgstr "+ Opret nyt team" +msgstr "Opret nyt team" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.default-team-name" diff --git a/frontend/translations/de.po b/frontend/translations/de.po index 6c41576c2..6f6fc3417 100644 --- a/frontend/translations/de.po +++ b/frontend/translations/de.po @@ -244,7 +244,7 @@ msgstr "(Kopie)" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.create-new-team" -msgstr "+ Neues Team erstellen" +msgstr "Neues Team erstellen" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.default-team-name" diff --git a/frontend/translations/el.po b/frontend/translations/el.po index 072d6b829..d1181aec0 100644 --- a/frontend/translations/el.po +++ b/frontend/translations/el.po @@ -173,7 +173,7 @@ msgstr "(Αντίγραφο)" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.create-new-team" -msgstr "+ Δημιουργία νέας ομάδας" +msgstr "Δημιουργία νέας ομάδας" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.default-team-name" diff --git a/frontend/translations/eu.po b/frontend/translations/eu.po index 9e067b9d5..a25fadc51 100644 --- a/frontend/translations/eu.po +++ b/frontend/translations/eu.po @@ -238,7 +238,7 @@ msgstr "(kopia)" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.create-new-team" -msgstr "+ Sortu talde berria" +msgstr "Sortu talde berria" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.default-team-name" diff --git a/frontend/translations/fa.po b/frontend/translations/fa.po index 91f758c2e..51e0b0ccc 100644 --- a/frontend/translations/fa.po +++ b/frontend/translations/fa.po @@ -247,7 +247,7 @@ msgstr "(کپی)" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.create-new-team" -msgstr "+ ایجاد تیم جدید" +msgstr "ایجاد تیم جدید" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.default-team-name" diff --git a/frontend/translations/he.po b/frontend/translations/he.po index df4bd856b..abc3b7479 100644 --- a/frontend/translations/he.po +++ b/frontend/translations/he.po @@ -237,7 +237,7 @@ msgstr "(עותק)" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.create-new-team" -msgstr "+ יצירת צוות חדש" +msgstr "יצירת צוות חדש" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.default-team-name" diff --git a/frontend/translations/id.po b/frontend/translations/id.po index fe7193256..be39b9974 100644 --- a/frontend/translations/id.po +++ b/frontend/translations/id.po @@ -237,7 +237,7 @@ msgstr "(salin)" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.create-new-team" -msgstr "+ Buat tim baru" +msgstr "Buat tim baru" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.default-team-name" diff --git a/frontend/translations/jpn_JP.po b/frontend/translations/jpn_JP.po index 03df38d92..4b4536e36 100644 --- a/frontend/translations/jpn_JP.po +++ b/frontend/translations/jpn_JP.po @@ -231,7 +231,7 @@ msgstr "(コピー)" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.create-new-team" -msgstr "+ チームを新規作成" +msgstr "チームを新規作成" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.default-team-name" diff --git a/frontend/translations/lt.po b/frontend/translations/lt.po index a41a1ad2a..4e941b99a 100644 --- a/frontend/translations/lt.po +++ b/frontend/translations/lt.po @@ -211,7 +211,7 @@ msgstr "(kopija)" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.create-new-team" -msgstr "+ Sukurti naują komandą" +msgstr "Sukurti naują komandą" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.default-team-name" diff --git a/frontend/translations/ml.po b/frontend/translations/ml.po index 3990b0849..eba23c668 100644 --- a/frontend/translations/ml.po +++ b/frontend/translations/ml.po @@ -212,7 +212,7 @@ msgstr "(പകർത്തുക)" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.create-new-team" -msgstr "+ പുതിയ സംഘം രൂപീകരിക്കുക" +msgstr "പുതിയ സംഘം രൂപീകരിക്കുക" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.default-team-name" diff --git a/frontend/translations/pl.po b/frontend/translations/pl.po index 013cfd3da..f10241a78 100644 --- a/frontend/translations/pl.po +++ b/frontend/translations/pl.po @@ -209,7 +209,7 @@ msgstr "(skopiuj)" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.create-new-team" -msgstr "+ Utwórz nowy zespół" +msgstr "Utwórz nowy zespół" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.default-team-name" diff --git a/frontend/translations/ru.po b/frontend/translations/ru.po index 67c55fd03..d424dfa11 100644 --- a/frontend/translations/ru.po +++ b/frontend/translations/ru.po @@ -206,7 +206,7 @@ msgstr "(копия)" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.create-new-team" -msgstr "+ Создать новую команду" +msgstr "Создать новую команду" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.default-team-name" diff --git a/frontend/translations/tr.po b/frontend/translations/tr.po index 189d0b619..118bfafb2 100644 --- a/frontend/translations/tr.po +++ b/frontend/translations/tr.po @@ -242,7 +242,7 @@ msgstr "(kopya)" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.create-new-team" -msgstr "+ Yeni takım oluştur" +msgstr "Yeni takım oluştur" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.default-team-name" diff --git a/frontend/translations/zh_CN.po b/frontend/translations/zh_CN.po index 861cbb7e3..b24deeee1 100644 --- a/frontend/translations/zh_CN.po +++ b/frontend/translations/zh_CN.po @@ -206,7 +206,7 @@ msgstr "(拷贝)" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.create-new-team" -msgstr "+ 创建新团队" +msgstr "创建新团队" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.default-team-name" diff --git a/frontend/translations/zh_Hant.po b/frontend/translations/zh_Hant.po index 3521e4c46..2257fc7b0 100644 --- a/frontend/translations/zh_Hant.po +++ b/frontend/translations/zh_Hant.po @@ -205,7 +205,7 @@ msgstr "(複製)" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.create-new-team" -msgstr "+ 建立新團隊" +msgstr "建立新團隊" #: src/app/main/ui/dashboard/sidebar.cljs msgid "dashboard.default-team-name"