From 2f89512a7567fec32039645042621079ff4faa21 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 11 Apr 2024 07:27:36 +0200 Subject: [PATCH] :bug: Fix project line shows an extra space after the number of files --- frontend/src/app/main/ui/dashboard/projects.cljs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/main/ui/dashboard/projects.cljs b/frontend/src/app/main/ui/dashboard/projects.cljs index fc0a51f97..cdd9304e9 100644 --- a/frontend/src/app/main/ui/dashboard/projects.cljs +++ b/frontend/src/app/main/ui/dashboard/projects.cljs @@ -312,11 +312,13 @@ :on-menu-close on-menu-close :on-import on-import}] - [:span {:class (stl/css :info)} (str (tr "labels.num-of-files" (i18n/c file-count)))] + ;; We group these two spans under a div to avoid having extra space between them. + [:div + [:span {:class (stl/css :info)} (str (tr "labels.num-of-files" (i18n/c file-count)))] - (let [time (-> (:modified-at project) - (dt/timeago {:locale locale}))] - [:span {:class (stl/css :recent-files-row-title-info)} (str ", " time)]) + (let [time (-> (:modified-at project) + (dt/timeago {:locale locale}))] + [:span {:class (stl/css :recent-files-row-title-info)} (str ", " time)])] [:div {:class (stl/css-case :project-actions true :pinned-project (:is-pinned project))}