@@ -370,23 +370,23 @@ class CsvEditorProvider implements vscode.CustomTextEditorProvider {
370370 if ( treatHeader ) {
371371 tableHtml += `<thead><tr>${
372372 addSerialIndex
373- ? `<th style="min-width: 4ch; max-width: 4ch; border: 1px solid #555; background-color: ${ isDark ? '#1e1e1e' : '#ffffff' } ; color: #888;">#</th>`
373+ ? `<th style="min-width: 4ch; max-width: 4ch; border: 1px solid ${ isDark ? ' #555' : '#ccc' } ; background-color: ${ isDark ? '#1e1e1e' : '#ffffff' } ; color: #888;">#</th>`
374374 : ''
375375 } `;
376376 headerRow . forEach ( ( cell , i ) => {
377377 const safe = this . escapeHtml ( cell ) ;
378- tableHtml += `<th style="min-width: ${ Math . min ( columnWidths [ i ] || 0 , 100 ) } ch; max-width: 100ch; border: 1px solid #555; background-color: ${ isDark ? '#1e1e1e' : '#ffffff' } ; color: ${ columnColors [ i ] } ; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" data-row="0" data-col="${ i } ">${ safe } </th>` ;
378+ tableHtml += `<th style="min-width: ${ Math . min ( columnWidths [ i ] || 0 , 100 ) } ch; max-width: 100ch; border: 1px solid ${ isDark ? ' #555' : '#ccc' } ; background-color: ${ isDark ? '#1e1e1e' : '#ffffff' } ; color: ${ columnColors [ i ] } ; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" data-row="0" data-col="${ i } ">${ safe } </th>` ;
379379 } ) ;
380380 tableHtml += `</tr></thead><tbody>` ;
381381 bodyData . forEach ( ( row , r ) => {
382382 tableHtml += `<tr>${
383383 addSerialIndex
384- ? `<td tabindex="0" style="min-width: 4ch; max-width: 4ch; border: 1px solid #555; color: #888;" data-row="${ r + 1 } " data-col="-1">${ r + 1 } </td>`
384+ ? `<td tabindex="0" style="min-width: 4ch; max-width: 4ch; border: 1px solid ${ isDark ? ' #555' : '#ccc' } ; color: #888;" data-row="${ r + 1 } " data-col="-1">${ r + 1 } </td>`
385385 : ''
386386 } `;
387387 row . forEach ( ( cell , i ) => {
388388 const safe = this . escapeHtml ( cell ) ;
389- tableHtml += `<td tabindex="0" style="min-width: ${ Math . min ( columnWidths [ i ] || 0 , 100 ) } ch; max-width: 100ch; border: 1px solid #555; color: ${ columnColors [ i ] } ; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" data-row="${ r + 1 } " data-col="${ i } ">${ safe } </td>` ;
389+ tableHtml += `<td tabindex="0" style="min-width: ${ Math . min ( columnWidths [ i ] || 0 , 100 ) } ch; max-width: 100ch; border: 1px solid ${ isDark ? ' #555' : '#ccc' } ; color: ${ columnColors [ i ] } ; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" data-row="${ r + 1 } " data-col="${ i } ">${ safe } </td>` ;
390390 } ) ;
391391 tableHtml += `</tr>` ;
392392 } ) ;
@@ -396,12 +396,12 @@ class CsvEditorProvider implements vscode.CustomTextEditorProvider {
396396 data . forEach ( ( row , r ) => {
397397 tableHtml += `<tr>${
398398 addSerialIndex
399- ? `<td tabindex="0" style="min-width: 4ch; max-width: 4ch; border: 1px solid #555; color: #888;" data-row="${ r } " data-col="-1">${ r + 1 } </td>`
399+ ? `<td tabindex="0" style="min-width: 4ch; max-width: 4ch; border: 1px solid ${ isDark ? ' #555' : '#ccc' } ; color: #888;" data-row="${ r } " data-col="-1">${ r + 1 } </td>`
400400 : ''
401401 } `;
402402 row . forEach ( ( cell , i ) => {
403403 const safe = this . escapeHtml ( cell ) ;
404- tableHtml += `<td tabindex="0" style="min-width: ${ Math . min ( columnWidths [ i ] || 0 , 100 ) } ch; max-width: 100ch; border: 1px solid #555; color: ${ columnColors [ i ] } ; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" data-row="${ r } " data-col="${ i } ">${ safe } </td>` ;
404+ tableHtml += `<td tabindex="0" style="min-width: ${ Math . min ( columnWidths [ i ] || 0 , 100 ) } ch; max-width: 100ch; border: 1px solid ${ isDark ? ' #555' : '#ccc' } ; color: ${ columnColors [ i ] } ; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" data-row="${ r } " data-col="${ i } ">${ safe } </td>` ;
405405 } ) ;
406406 tableHtml += `</tr>` ;
407407 } ) ;
@@ -427,7 +427,7 @@ class CsvEditorProvider implements vscode.CustomTextEditorProvider {
427427 body { font-family: "${ fontFamily } "; margin: 0; padding: 0; user-select: none; }
428428 .table-container { overflow-x: auto; max-height: 100vh; }
429429 table { border-collapse: collapse; width: max-content; }
430- th, td { padding: ${ cellPadding } px 8px; border: 1px solid #555; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
430+ th, td { padding: ${ cellPadding } px 8px; border: 1px solid ${ isDark ? ' #555' : '#ccc' } ; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
431431 th { position: sticky; top: 0; background-color: ${ isDark ? '#1e1e1e' : '#ffffff' } ; }
432432 td.selected, th.selected { background-color: ${ isDark ? '#333333' : '#cce0ff' } !important; }
433433 td.editing, th.editing { overflow: visible !important; white-space: normal !important; max-width: none !important; }
0 commit comments