This commit is contained in:
kek7198 2021-12-12 21:21:50 -06:00
parent 8f1c5e8b1a
commit f6434b5cc4
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ function timestamp(str, ti) {
function expandText(id) { function expandText(id) {
const el = document.getElementById('post-text-'+id); const el = document.getElementById('post-text-'+id);
['gradient-mask', 'max-h-32', 'overflow-hidden', 'pointer-events-none', 'text-gray-600'].map(v=> el.classList.toggle(v)); ['gradient-mask', 'max-h-12', 'overflow-hidden', 'pointer-events-none', 'text-gray-600'].map(v=> el.classList.toggle(v));
['text-black'].map(v=> el.classList.toggle(v)); ['text-black'].map(v=> el.classList.toggle(v));
const trigger = document.getElementsByClassName('text-expand-icon-'+id); const trigger = document.getElementsByClassName('text-expand-icon-'+id);

View file

@ -232,7 +232,7 @@
</h5> </h5>
{% if p.realbody(v) and not p.over_18 %} {% if p.realbody(v) and not p.over_18 %}
<div class="gradient-mask max-h-12 mb-2 overflow-hidden pointer-events-none text-gray-600" style="max-height: 3rem;" id="post-text-{{p.id}}"> <div class="gradient-mask max-h-12 mb-2 overflow-hidden pointer-events-none text-gray-600" id="post-text-{{p.id}}">
{{p.realbody(v) | safe}} {{p.realbody(v) | safe}}
</div> </div>
{% endif %} {% endif %}
@ -377,7 +377,7 @@
{% include "expanded_image_modal.html" %} {% include "expanded_image_modal.html" %}
<script defer src="/assets/js/new_comments_count.js?v=200"></script> <script defer src="/assets/js/new_comments_count.js?v=200"></script>
<script defer src="/assets/js/submission_listing.js?v=200"></script> <script defer src="/assets/js/submission_listing.js?v=201"></script>
<style> <style>
.mod:before { .mod:before {