- {' '}
- {/* Agregamos un pr-2 para que el scrollbar no tape botones */}
{!showArchived ? (
activeChats.map((chat) => (
setActiveChatId(chat.id)}
className={`group relative flex w-full items-center overflow-hidden rounded-lg px-3 py-3 text-sm transition-colors ${
activeChatId === chat.id
- ? 'bg-slate-100 font-medium text-slate-900'
- : 'text-slate-600 hover:bg-slate-50'
+ ? 'bg-accent text-foreground font-medium'
+ : 'text-muted-foreground hover:bg-accent/50'
}`}
>
- {/* LADO IZQUIERDO: Icono + Texto */}
- {/* pr-12 reserva espacio para los botones absolutos */}
@@ -654,7 +614,7 @@ function RouteComponent() {
suppressContentEditableWarning={true}
className={`block truncate outline-none ${
editingChatId === chat.id
- ? 'max-h-20 min-w-[100px] cursor-text overflow-y-auto rounded bg-white px-1 break-all shadow-sm ring-1 ring-teal-500'
+ ? 'bg-background ring-primary max-h-20 min-w-[100px] cursor-text overflow-y-auto rounded px-1 break-all shadow-sm ring-1'
: 'cursor-pointer'
}`}
onDoubleClick={(e) => {
@@ -703,10 +663,9 @@ function RouteComponent() {
- {/* LADO DERECHO: Acciones ABSOLUTAS */}
@@ -729,15 +688,14 @@ function RouteComponent() {
))
) : (
- /* Sección de archivados (Simplificada para mantener consistencia) */
-
+
Archivados
{archivedChats.map((chat) => (
@@ -748,7 +706,7 @@ function RouteComponent() {
@@ -760,22 +718,21 @@ function RouteComponent() {
- {/* --- PANEL DE CHAT PRINCIPAL (Centro) --- */}
-
- {/* NUEVO: Barra superior de campos seleccionados */}
-
+ {/* --- PANEL DE CHAT PRINCIPAL --- */}
+
+
-
+
Mejorar con IA
- {/* CONTENIDO DEL CHAT */}
@@ -793,12 +749,12 @@ function RouteComponent() {
-
+
No hay un chat seleccionado
-
+
Selecciona un chat del historial o crea uno nuevo para
empezar.
@@ -808,7 +764,6 @@ function RouteComponent() {
{chatMessages.map((msg: any) => {
const isAI = msg.role === 'assistant'
const isUser = msg.role === 'user'
- // IMPORTANTE: Asegúrate de que msg.id contenga la info de procesamiento o pásala en el map
const isProcessing = msg.isProcessing
return (
@@ -821,48 +776,44 @@ function RouteComponent() {
- {/* Aviso de Refusal */}
{msg.isRefusal && (
-
+
Aviso del Asistente
)}
- {/* CONTENIDO CORRECTO: Usamos msg.content */}
{isAI && isProcessing ? (
) : (
- msg.content // <--- CAMBIO CLAVE
+ msg.content
)}
- {/* Recomendaciones */}
{isAI && msg.suggestions?.length > 0 && (
-
+
-
+
Sugerencias de mejora
- {/* Botón Seleccionar Todo */}
{msg.suggestions.some(
(s: any) => !s.applied,
) && (