diff --git a/api/reports/matrix.html b/api/reports/matrix.html
index 4ad897d..8357590 100644
--- a/api/reports/matrix.html
+++ b/api/reports/matrix.html
@@ -250,25 +250,27 @@
const table = document.createElement('table');
const thead = document.createElement('thead');
const headRow = document.createElement('tr');
+ // 左上角那一格钉住两个方向 —— 横着滚日期、竖着滚博主都要能看到它。
const corner = document.createElement('th');
- corner.textContent = '日期';
+ corner.textContent = '博主 \\ 日期';
headRow.appendChild(corner);
- for (const creator of data.creators) {
+ for (const day of data.dates) {
const th = document.createElement('th');
- th.textContent = creator.name;
+ th.textContent = day;
headRow.appendChild(th);
}
thead.appendChild(headRow);
table.appendChild(thead);
const tbody = document.createElement('tbody');
- for (const day of data.dates) {
+ for (const creator of data.creators) {
const tr = document.createElement('tr');
const th = document.createElement('th');
- th.textContent = day;
+ th.textContent = creator.name;
+ th.title = creator.name;
tr.appendChild(th);
- const rowCells = data.cells[day] || {};
- for (const creator of data.creators) {
+ for (const day of data.dates) {
+ const rowCells = data.cells[day] || {};
tr.appendChild(cellNode(rowCells[creator.hash]));
}
tbody.appendChild(tr);