Update conversations.php

This commit is contained in:
Lizandro Guarnizo
2026-01-24 01:30:32 -05:00
parent 12afa840d4
commit fafa3980f9
+10 -1
View File
@@ -246,6 +246,15 @@
transition: opacity 0.12s ease-in-out;
white-space: nowrap;
}
/* Preserve user whitespace and line breaks like WhatsApp */
.message-content {
white-space: pre-wrap; /* preserve newlines and wrap long lines */
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-break: break-word;
}
.message-bubble:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(2,6,23,0.06);
@@ -2224,7 +2233,7 @@
const prependEls = []; // elements to insert at top if we loaded older messages
const nearBottom = (container.scrollHeight - container.scrollTop - container.clientHeight) < 150;
// calculate near-bottom late to decide scrolling after DOM updates (avoids stale value)
for (let i = 0; i < this.conversations.length; i++) {
const msg = this.conversations[i];