diff --git a/files/templates/comments.html b/files/templates/comments.html index f0eb96d5c..aa7dddec0 100755 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -121,7 +121,7 @@
{% if c.author.bio_html %}{{c.author.bio_html | safe}}{% endif %}
-
+
{{c.author.post_count}} posts @@ -728,7 +728,7 @@ } .popover { - max-width: 320px; + max-width: 100%; box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175); border-color: #dadada; } @@ -781,7 +781,7 @@ } .smol { - font-size: 10px; + font-size: 11.5px; } diff --git a/files/templates/submission.html b/files/templates/submission.html index 820abe575..3cd2d16a3 100755 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -176,7 +176,7 @@
{% if p.author.bio_html %}{{p.author.bio_html | safe}}{% endif %}
-
+
{{p.author.post_count}} posts diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index 1e85446cc..d2bcc410a 100755 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -20,6 +20,16 @@ console.log(e); }); + const popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')); + + const popoverList = popoverTriggerList.map(function(popoverTriggerEl) { + const popoverId = popoverTriggerEl.getAttribute('data-content-id'); + const contentEl = document.getElementById(popoverId).innerHTML; + return new bootstrap.Popover(popoverTriggerEl, { + content: contentEl, + html: true, + }); + }) {% for p in listing %} @@ -36,7 +46,7 @@
{% if p.author.bio_html %}{{p.author.bio_html | safe}}{% endif %}
-
+
{{p.author.post_count}} posts @@ -570,7 +580,7 @@