From 5bbcc7f2f7c067f5b74d20c0ebb62f3e66918109 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 23 May 2022 11:24:13 -0700 Subject: [PATCH] Better handle long tag names --- src-ui/src/app/components/common/tag/tag.component.scss | 3 +++ .../document-card-small.component.html | 6 ++---- .../document-card-small.component.scss | 8 ++++++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src-ui/src/app/components/common/tag/tag.component.scss b/src-ui/src/app/components/common/tag/tag.component.scss index 903e9bfdb..d5d77448d 100644 --- a/src-ui/src/app/components/common/tag/tag.component.scss +++ b/src-ui/src/app/components/common/tag/tag.component.scss @@ -1,3 +1,6 @@ a { cursor: pointer; + white-space: normal; + word-break: break-word; + text-align: end; } diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html index 431454fe5..a27b23d37 100644 --- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html +++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html @@ -10,10 +10,8 @@ -
-
- -
+
+
+ {{moreTags}}
diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.scss b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.scss index 4d03d0a4d..6ccbba0c2 100644 --- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.scss +++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.scss @@ -78,3 +78,11 @@ a { cursor: pointer; } + +.tags { + top: 0; + right: 0; + max-width: 80%; + row-gap: .2rem; + line-height: 1; +}