diff --git a/src/tags/image-content-digest.tag b/src/tags/image-content-digest.tag
index d9d6954..5940aad 100644
--- a/src/tags/image-content-digest.tag
+++ b/src/tags/image-content-digest.tag
@@ -28,7 +28,7 @@
if (chars >= 70) {
self.display_id = self.digest;
self.title = '';
- } else if (chars === 0) {
+ } else if (chars <= 0) {
self.display_id = '';
self.title = self.digest;
} else {
diff --git a/src/tags/taglist.tag b/src/tags/taglist.tag
index 8669a6b..dc1cf79 100644
--- a/src/tags/taglist.tag
+++ b/src/tags/taglist.tag
@@ -93,6 +93,9 @@ along with this program. If not, see .
// window.innerWidth is a blocking access, cache its result.
const innerWidth = window.innerWidth;
var chars = 0;
+ var max = registryUI.taglist.tags.reduce(function(acc, e) {
+ return e.tag.length > acc ? e.tag.length : acc;
+ }, 0);
if (innerWidth >= 1440) {
chars = 71;
} else if (innerWidth < 1024) {
@@ -101,6 +104,7 @@ along with this program. If not, see .
// SHA256:12345678 + scaled between 1024 and 1440px
chars = 15 + 56 * ((innerWidth - 1024) / 416);
}
+ if (max > 20) chars -= (max - 20);
registryUI.taglist.tags.map(function (image) {
image.trigger('content-digest-chars', chars);
});