diff --git a/files/templates/comments.html b/files/templates/comments.html index 9d0d2d76d..6a5d8b97d 100755 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -75,6 +75,17 @@ document.getElementById('toast-post-error-text').innerText = "Only logged-in users can vote!"; {% endif %} } + + 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, + }); + }) @@ -98,6 +109,40 @@ })() + + {% set ups=c.upvotes %} {% set downs=c.downvotes %} {% set score=ups-downs %} @@ -228,7 +273,7 @@ {% if c.author.verified %} {% endif %} - {{c.author.username}} + {{c.author.username}} {% if c.author.customtitle %}  {% if c.author.quadrant %}{% endif %}{{c.author.customtitle | safe}}{% endif %} {% if c.parent_comment_id and not standalone and level<=7 %}{{ c.parent_comment.author.username }}{% endif %} @@ -681,6 +726,59 @@ background: -webkit-linear-gradient(left, red, orange, yellow, green, blue, indigo, violet ); text-shadow:-1px -1px 0 black,1px -1px 0 black,-1px 1px 0 black,1px 1px 0 black; } + + .popover { + max-width: 320px; + box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175); + border-color: #dadada; + } + + .popover-arrow { + display: none !important; + } + + .popover-user-profile { + display: flex; + flex-direction: column; + padding: 0; + background: var(--gray-600); + } + + .popover-body { + padding: 0; + border-radius: .25rem; + overflow: hidden; + } + + .mt-n6 { + margin-top: -1.75rem !important; + } + + .avatar-72 { + width: 72px; + height: 72px; + object-fit: cover; + } + + .h-64 { + height: 64px; + } + + .object-cover { + object-fit: cover; + } + + .text-black { + color: var(--black); + } + + .smolbtn { + font-weight: 600; + font-size: .9rem; + border-radius: 0.2rem; + padding: 0.1rem 0.50rem 0rem 0.30rem; + background-color: var(--black) !important; + } \ No newline at end of file diff --git a/files/templates/submission.html b/files/templates/submission.html index 86cb7c6be..49baf59ad 100755 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -163,6 +163,42 @@ {% block pagetype %}thread{% endblock %} {% block actionsModal %} + + + +