-
- {log.line}
-
+ chunkedLogs.map((chunk, chunkIndex) => (
+
+
+ {chunk.map(log => (
+
+
+
+ {log.line}
+
+
+
+
+ ))}
+
+
+
handleAnalyzeChunk(chunk)} title="Analyser cette zone de logs">
+
+
+
-
))
)}
diff --git a/src/index.css b/src/index.css
index 9e895ea..1b6fd6d 100644
--- a/src/index.css
+++ b/src/index.css
@@ -1000,3 +1000,58 @@ header h1 {
color: var(--text-muted);
font-style: italic;
}
+
+/* Chunked Logs Container */
+.log-chunk {
+ display: flex;
+ position: relative;
+ transition: background 0.2s;
+}
+
+.chunk-lines {
+ flex: 1;
+ min-width: 0;
+ transition: background 0.2s;
+ border-radius: 4px 0 0 4px;
+}
+
+/* La fameuse fine barre continue */
+.chunk-sidebar {
+ width: 24px;
+ flex-shrink: 0;
+ border-left: 1px solid rgba(255, 255, 255, 0.05); /* Ligne subtile pour marquer la droite */
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ cursor: pointer;
+ background: transparent;
+ transition: all 0.2s;
+ margin-right: -1rem; /* S'étend jusqu'au bord du padding */
+}
+
+.chunk-sidebar-icon {
+ opacity: 0;
+ color: var(--accent-color);
+ transition: opacity 0.2s, transform 0.2s;
+}
+
+/* Comportement au survol de la zone de la barre latérale ! */
+.chunk-sidebar:hover {
+ background: rgba(45, 120, 255, 0.05);
+ border-left: 1px solid var(--accent-color);
+}
+
+.chunk-sidebar:hover .chunk-sidebar-icon {
+ opacity: 1;
+ transform: scale(1.1);
+}
+
+/* Surbrillance visuelle automatique des logs dans cette zone (utilise le sélecteur :has pour Chrome/Safari modernes) */
+.log-chunk:has(.chunk-sidebar:hover) .chunk-lines {
+ background: rgba(45, 120, 255, 0.08); /* Highlight de la zone de texte */
+}
+
+/* Garder l'apparition du bouton sparkle au survol sur une ligne individuelle */
+.log-line-wrapper {
+ position: relative;
+}