From 203b6c63a4dce157a3dc0ec886eb5f90729fede3 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Fri, 14 Jul 2023 09:22:08 +0200 Subject: [PATCH] :bug: Fix incorrect style for asset libraries titles --- frontend/resources/styles/main/partials/sidebar.scss | 9 +++++++++ frontend/src/app/main/ui/workspace/sidebar/assets.cljs | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/frontend/resources/styles/main/partials/sidebar.scss b/frontend/resources/styles/main/partials/sidebar.scss index d8498fa7b..b1890d5ec 100644 --- a/frontend/resources/styles/main/partials/sidebar.scss +++ b/frontend/resources/styles/main/partials/sidebar.scss @@ -85,6 +85,15 @@ } } + span.library-title { + color: $color-gray-10; + font-size: $fs14; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + .tool-window-bar-icon { height: 21px; display: flex; diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs index 8b8e66665..627a0861b 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs @@ -2100,11 +2100,11 @@ (if local? [:* - [:span file-name " (" (tr "workspace.assets.local-library") ")"] + [:span.library-title file-name " (" (tr "workspace.assets.local-library") ")"] (when shared? [:span.tool-badge (tr "workspace.assets.shared")])] [:* - [:span file-name] + [:span.library-title file-name] [:span.tool-link.tooltip.tooltip-left {:alt "Open library file"} [:a {:href (str "#" url) :target "_blank"