Cosmetic update date column smaller V3
This commit is contained in:
parent
287584f159
commit
9023d04e9e
@ -29,7 +29,13 @@ function renderTable() {
|
||||
// Header row
|
||||
const thead = document.createElement('thead');
|
||||
const headRow = document.createElement('tr');
|
||||
headRow.appendChild(document.createElement('th')).innerText = 'Date';
|
||||
const dateTh = document.createElement('th');
|
||||
dateTh.innerText = 'Date';
|
||||
dateTh.style.width = '120px';
|
||||
dateTh.style.minWidth = '100px';
|
||||
dateTh.style.maxWidth = '140px';
|
||||
dateTh.style.textAlign = 'left';
|
||||
headRow.appendChild(dateTh);
|
||||
data.players.forEach((name, i) => {
|
||||
const th = document.createElement('th');
|
||||
th.innerText = name;
|
||||
@ -76,7 +82,10 @@ function renderTable() {
|
||||
if (rowIdx === closestIdx) tr.id = 'current-match-row';
|
||||
// Date cell
|
||||
const dateTd = document.createElement('td');
|
||||
|
||||
dateTd.style.width = '120px';
|
||||
dateTd.style.minWidth = '100px';
|
||||
dateTd.style.maxWidth = '140px';
|
||||
dateTd.style.textAlign = 'left';
|
||||
if (date === '29/05/25' || date === '25/12/25') {
|
||||
const strong = document.createElement('strong');
|
||||
strong.innerText = date;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user