feat(F-103): completed feature

This commit is contained in:
chattie
2026-08-21 07:55:18 +02:00
parent 5177a851aa
commit c07776822d
40 changed files with 886 additions and 156 deletions

View File

@@ -117,7 +117,8 @@ export function ServerLogViewer({ backendUrl = 'http://192.168.18.93:3000' }: Se
const json = raw.slice(6);
setLogs(prev => {
const next = [...prev, parseLine(json)];
return next.length > 2000 ? next.slice(-2000) : next;
// Máximo 200 líneas para no sobrecargar el servidor ni el navegador.
return next.length > 200 ? next.slice(-200) : next;
});
}
}
@@ -187,7 +188,7 @@ export function ServerLogViewer({ backendUrl = 'http://192.168.18.93:3000' }: Se
className="flex-1 overflow-y-auto bg-[#0d1117] font-mono text-xs leading-relaxed"
style={{ minHeight: 0 }}
>
<table className="w-full">
<table className="w-full table-fixed">
<tbody>
{logs.map((entry, i) => (
<tr