From 7d409321e9f606ea5a9487b5dff04f3f16349d27 Mon Sep 17 00:00:00 2001 From: amd-9 Date: Sat, 10 Oct 2020 20:10:11 +0300 Subject: [PATCH] fix: Truncate long label names in the sidebar (#1309) Co-authored-by: Pranav Raj S --- .../dashboard/components/layout/Sidebar.vue | 1 + .../components/layout/SidebarItem.vue | 20 +++++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/app/javascript/dashboard/components/layout/Sidebar.vue b/app/javascript/dashboard/components/layout/Sidebar.vue index 0b06cfdc0..fddfaab6e 100644 --- a/app/javascript/dashboard/components/layout/Sidebar.vue +++ b/app/javascript/dashboard/components/layout/Sidebar.vue @@ -275,6 +275,7 @@ export default { id: label.id, label: label.title, color: label.color, + truncateLabel: true, toState: frontendURL( `accounts/${this.accountId}/label/${label.title}` ), diff --git a/app/javascript/dashboard/components/layout/SidebarItem.vue b/app/javascript/dashboard/components/layout/SidebarItem.vue index 396033f76..df7318aad 100644 --- a/app/javascript/dashboard/components/layout/SidebarItem.vue +++ b/app/javascript/dashboard/components/layout/SidebarItem.vue @@ -30,7 +30,7 @@ tag="li" :to="child.toState" > - +
- - {{ child.label }} +
+ {{ child.label }} +
@@ -52,7 +56,6 @@