From 3e76a72fcaa02599bc8874a93e367ee7a71d9afb Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Sun, 7 Aug 2022 23:30:58 -0400 Subject: [PATCH] fix(plugins/projects): text ellipsis for long texts --- .../templates/classic/partials/projects.ejs | 32 ++++++++----------- source/templates/classic/style.css | 8 +++++ .../repository/partials/projects.ejs | 32 ++++++++----------- 3 files changed, 36 insertions(+), 36 deletions(-) diff --git a/source/templates/classic/partials/projects.ejs b/source/templates/classic/partials/projects.ejs index e16d2470..b8659121 100644 --- a/source/templates/classic/partials/projects.ejs +++ b/source/templates/classic/partials/projects.ejs @@ -62,24 +62,20 @@ <% } %> <% if (items.length) { %>
- <% for (const {type, text} of items) { %> -
-
-
- <% if (type === "DRAFT_ISSUE") { %> - - <% } else if (type === "ISSUE") { %> - - <% } else if (type === "ISSUE") { %> - - <% } else { %> - - <% } %> - <%= text %> -
-
-
- <% } %> + <% for (const {type, text} of items) { %> +
+ <% if (type === "DRAFT_ISSUE") { %> + + <% } else if (type === "ISSUE") { %> + + <% } else if (type === "ISSUE") { %> + + <% } else { %> + + <% } %> + <%= text %> +
+ <% } %>
<% } %> <% } %> diff --git a/source/templates/classic/style.css b/source/templates/classic/style.css index 16e436a0..361a9348 100644 --- a/source/templates/classic/style.css +++ b/source/templates/classic/style.css @@ -921,6 +921,14 @@ .project .items, .project-items { padding-left: 11px; } + .project .items .text, .project-items .text { + text-overflow: ellipsis; + overflow: hidden; + width: 426px; + } + .large .project .items .text, .large .project-items .text { + width: 916px; + } /* Star lists */ .starlist { diff --git a/source/templates/repository/partials/projects.ejs b/source/templates/repository/partials/projects.ejs index 9c50c903..90a323d2 100644 --- a/source/templates/repository/partials/projects.ejs +++ b/source/templates/repository/partials/projects.ejs @@ -53,24 +53,20 @@ <% } %> <% if (items.length) { %>
- <% for (const {type, text} of items) { %> -
-
-
- <% if (type === "DRAFT_ISSUE") { %> - - <% } else if (type === "ISSUE") { %> - - <% } else if (type === "ISSUE") { %> - - <% } else { %> - - <% } %> - <%= text %> -
-
-
- <% } %> + <% for (const {type, text} of items) { %> +
+ <% if (type === "DRAFT_ISSUE") { %> + + <% } else if (type === "ISSUE") { %> + + <% } else if (type === "ISSUE") { %> + + <% } else { %> + + <% } %> + <%= text %> +
+ <% } %>
<% } %> <% } %>