From 33706e0bda18bfca651baae385d2c47fe82a60ad Mon Sep 17 00:00:00 2001 From: Eva Date: Thu, 4 Aug 2022 13:54:35 +0200 Subject: [PATCH] :tada: Add ellipsis to text --- .../styles/main/partials/dashboard-grid.scss | 13 ++++++++----- frontend/src/app/main/ui/dashboard/grid.cljs | 3 ++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/frontend/resources/styles/main/partials/dashboard-grid.scss b/frontend/resources/styles/main/partials/dashboard-grid.scss index ae8f0df77..c9ac8ccf7 100644 --- a/frontend/resources/styles/main/partials/dashboard-grid.scss +++ b/frontend/resources/styles/main/partials/dashboard-grid.scss @@ -94,9 +94,7 @@ } .item-info { - color: $color-gray-20; - display: flex; - flex-direction: column; + display: grid; padding: $size-2; text-align: left; width: 100%; @@ -120,13 +118,18 @@ max-width: 230px; } } - + span.date { - color: $color-gray-30; + color: $color-gray-20; font-size: $fs14; overflow: hidden; text-overflow: ellipsis; width: 100%; + white-space: nowrap; + max-width: 260px; + @media #{$bp-max-1366} { + max-width: 230px; + } } .edit-wrapper { diff --git a/frontend/src/app/main/ui/dashboard/grid.cljs b/frontend/src/app/main/ui/dashboard/grid.cljs index 1e0b60ab0..c51e1dbf9 100644 --- a/frontend/src/app/main/ui/dashboard/grid.cljs +++ b/frontend/src/app/main/ui/dashboard/grid.cljs @@ -62,7 +62,8 @@ [{:keys [modified-at]}] (let [locale (mf/deref i18n/locale) time (dt/timeago modified-at {:locale locale})] - (str (tr "ds.updated-at" time)))) + [:span.date + (str (tr "ds.updated-at" time))])) (defn create-counter-element [_element file-count]