Update message-table-renderer.js

This commit is contained in:
2025-10-23 22:05:42 +08:00
committed by GitHub
parent ecdc8f4ae9
commit 3d13a0459c

View File

@@ -27,7 +27,9 @@ function renderTablesToHtml(tables, highlights) {
html += '<tbody>';
table.rows.forEach((row, rowIndex) => {
html += '<tr>';
const rowStatus = table.rowStatuses ? table.rowStatuses[rowIndex] : 'normal';
const deletionClass = rowStatus === 'pending-deletion' ? ' pending-deletion-row' : '';
html += `<tr class="${deletionClass}">`;
row.forEach((cell, colIndex) => {
const highlightKey = `${tableIndex}-${rowIndex}-${colIndex}`;
const isHighlighted = highlights.has(highlightKey);