This commit is contained in:
kek7198 2021-12-20 12:56:40 -06:00
parent f304c62486
commit 543b88a386
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -238,7 +238,7 @@
</h5>
{% if p.realbody(v) and not p.over_18 %}
<div class="relative z-10 gradient-mask max-h-12 overflow-hidden pointer-events-none text-gray-600 break-words" style="word-break: break-word;" id="post-text-{{p.id}}">
<div class="relative z-10 gradient-mask max-h-10 overflow-hidden pointer-events-none text-gray-600 break-words" style="word-break: break-word;" id="post-text-{{p.id}}">
{{p.realbody(v) | safe}}
</div>
{% endif %}
@ -383,7 +383,7 @@
{% include "CHRISTMAS/expanded_image_modal.html" %}
<script defer src="/assets/CHRISTMAS/js/new_comments_count.js?v=200"></script>
<script defer src="/assets/CHRISTMAS/js/submission_listing.js?v=202"></script>
<script defer src="/assets/CHRISTMAS/js/submission_listing.js?v=203"></script>
<style>
.mod:before {