mirror of
https://github.com/SilenceLurker/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 12:25:51 +00:00
Update message-table-renderer.js
This commit is contained in:
@@ -27,7 +27,9 @@ function renderTablesToHtml(tables, highlights) {
|
|||||||
|
|
||||||
html += '<tbody>';
|
html += '<tbody>';
|
||||||
table.rows.forEach((row, rowIndex) => {
|
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) => {
|
row.forEach((cell, colIndex) => {
|
||||||
const highlightKey = `${tableIndex}-${rowIndex}-${colIndex}`;
|
const highlightKey = `${tableIndex}-${rowIndex}-${colIndex}`;
|
||||||
const isHighlighted = highlights.has(highlightKey);
|
const isHighlighted = highlights.has(highlightKey);
|
||||||
|
|||||||
Reference in New Issue
Block a user