refactor(ai): remove quick chips drawer to keep chat view clean and minimal (v3.8.37)

This commit is contained in:
2026-10-27 22:44:49 -03:00
parent 939878c4a8
commit bd88dfdd19
8 changed files with 23 additions and 127 deletions
+1 -52
View File
@@ -49,14 +49,11 @@
</div>
</div>
<!-- Botones de Acción Derecha: Nuevo Chat + Opciones + Cerrar -->
<!-- Botones de Acción Derecha: Nuevo Chat + Cerrar -->
<div class="d-flex align-items-center gap-1">
<button type="button" class="ai-btn-circle" id="aiChatClearBtn" title="Nueva conversación" aria-label="Nueva conversación">
<i class="bi bi-pencil-square fs-6"></i>
</button>
<button type="button" class="ai-btn-circle" id="aiChatChipsToggleBtn" title="Temas de ayuda" aria-label="Temas sugeridos">
<i class="bi bi-sliders fs-6"></i>
</button>
<button type="button" class="ai-btn-circle d-none d-md-inline-flex" id="aiChatCloseBtn" title="Cerrar ventana" aria-label="Cerrar">
<i class="bi bi-x-lg fs-6"></i>
</button>
@@ -68,17 +65,6 @@
<small class="text-muted d-block text-center">UdeCi usa inteligencia artificial para responderte.</small>
</div>
<!-- Panel Desplegable de Temas / Sugerencias Rápidas (+) -->
<div id="aiChatQuickChips" class="ai-quick-chips-drawer d-none px-3 py-2 border-bottom">
<div class="d-flex align-items-center justify-content-between mb-1">
<span class="small fw-semibold text-muted text-uppercase" style="font-size:0.68rem; letter-spacing:0.05em;">Consultas Rápidas</span>
<button type="button" class="btn-close btn-close-sm" id="aiChatCloseChipsBtn" aria-label="Ocultar"></button>
</div>
<div class="ai-chips-container d-flex flex-wrap gap-1" id="aiRoleChipsContainer">
<!-- Se inyectan dinámicamente según el rol -->
</div>
</div>
<!-- Área de Conversación (Mensajes) -->
<div class="ai-chat-messages px-3 py-2" id="aiChatMessages" tabindex="0">
<!-- Conversación generada dinámicamente -->
@@ -282,30 +268,6 @@
color: #64748B !important;
}
/* Drawer de Chips / Consultas Rápidas */
.ai-quick-chips-drawer {
background: #F8FAFC;
max-height: 180px;
overflow-y: auto;
}
.ai-chip-pill {
font-size: 0.76rem;
padding: 5px 12px;
border-radius: 20px;
background: #FFFFFF;
border: 1px solid #CBD5E1;
color: #1E293B;
cursor: pointer;
transition: all 0.15s ease;
font-weight: 500;
}
.ai-chip-pill:hover {
background: #B43E8E;
border-color: #B43E8E;
color: #FFFFFF;
transform: translateY(-1px);
}
/* Área de Mensajes */
.ai-chat-messages {
flex: 1 1 auto;
@@ -532,19 +494,6 @@
[data-bs-theme="dark"] .ai-chat-disclaimer small {
color: #94A3B8 !important;
}
[data-bs-theme="dark"] .ai-quick-chips-drawer {
background: #131D31;
border-bottom-color: #1E293B;
}
[data-bs-theme="dark"] .ai-chip-pill {
background: #1E293B;
border-color: #334155;
color: #F8FAFC;
}
[data-bs-theme="dark"] .ai-chip-pill:hover {
background: #B43E8E;
border-color: #B43E8E;
}
[data-bs-theme="dark"] .ai-chat-messages {
background: #0F172A;
}