Update chat_window.php

This commit is contained in:
Lizandro Guarnizo
2026-01-22 11:11:40 -05:00
parent 1e1b0e85f9
commit b84d45d967
+29 -26
View File
@@ -34,51 +34,54 @@ if (empty($user_id)) {
.chat-container { .chat-container {
background: white; background: white;
border-radius: 15px; border-radius: 12px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2); box-shadow: 0 8px 20px rgba(0,0,0,0.12);
margin: 20px auto; margin: 12px auto;
max-width: 900px; max-width: 820px; /* un poco más estrecho */
height: calc(100vh - 40px); height: calc(100vh - 36px);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden;
} }
.chat-header { .chat-header {
background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
color: white; color: white;
padding: 20px; padding: 10px 14px; /* más compacto */
border-radius: 15px 15px 0 0; border-radius: 12px 12px 0 0;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: 12px;
} }
.chat-conversations { .chat-conversations {
flex: 1; flex: 1;
padding: 20px; padding: 12px; /* menos padding para caber más */
overflow-y: auto; overflow-y: auto;
background: #f8f9fa; background: #f8f9fa;
} }
.chat-input { .chat-input {
padding: 20px; padding: 12px; /* compacto */
background: white; background: white;
border-radius: 0 0 15px 15px; border-radius: 0 0 12px 12px;
border-top: 1px solid #eee; border-top: 1px solid #eee;
} }
.message-bubble { .message-bubble {
margin: 10px 0; margin: 8px 0;
padding: 12px 16px; padding: 8px 12px; /* menos padding */
border-radius: 18px; border-radius: 14px;
max-width: 70%; max-width: 65%;
word-wrap: break-word; word-wrap: break-word;
font-size: 0.95rem;
} }
/* Estilos para mensajes multimedia */ /* Estilos para mensajes multimedia */
.message-bubble img { .message-bubble img {
max-width: 300px; max-width: 260px; /* un poco más pequeño */
max-height: 400px; max-height: 360px;
width: auto; width: auto;
height: auto; height: auto;
border-radius: 8px; border-radius: 8px;
@@ -88,16 +91,16 @@ if (empty($user_id)) {
} }
.message-bubble video { .message-bubble video {
max-width: 300px; max-width: 260px;
max-height: 400px; max-height: 360px;
border-radius: 8px; border-radius: 8px;
display: block; display: block;
margin: 4px 0; margin: 4px 0;
} }
.message-bubble audio { .message-bubble audio {
width: 250px; width: 200px;
height: 40px; height: 36px;
margin: 4px 0; margin: 4px 0;
display: block; display: block;
} }
@@ -178,21 +181,21 @@ if (empty($user_id)) {
} }
.user-avatar { .user-avatar {
width: 45px; width: 36px; /* más pequeño */
height: 45px; height: 36px;
border-radius: 50%; border-radius: 50%;
background: #25D366; background: #25D366;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: white; color: white;
font-weight: bold; font-weight: 600;
font-size: 1.2rem; font-size: 0.95rem;
} }
.status-indicator { .status-indicator {
font-size: 0.8rem; font-size: 0.75rem;
opacity: 0.8; opacity: 0.85;
} }
/* Estilos para multimedia */ /* Estilos para multimedia */