mirror of
https://github.com/vinta/awesome-python.git
synced 2026-08-04 07:03:57 +00:00
feat(mobile): show last commit date in expand row on mobile
Add an expand-commit span inside the expand row that displays the last commit date. Hidden on desktop, visible only on mobile (max-width: 960px) via media query, mirroring the commit column that appears in the full table. Relative time formatting is applied via JS on page load. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
f1799c2a44
commit
7df2e36334
3 changed files with 15 additions and 0 deletions
|
|
@ -79,6 +79,10 @@ document.querySelectorAll(".col-commit[data-commit]").forEach(function (td) {
|
|||
if (time) time.textContent = relativeTime(td.dataset.commit);
|
||||
});
|
||||
|
||||
document.querySelectorAll(".expand-commit time[datetime]").forEach(function (time) {
|
||||
time.textContent = relativeTime(time.getAttribute("datetime"));
|
||||
});
|
||||
|
||||
// Store original row order for sort reset
|
||||
rows.forEach(function (row, i) {
|
||||
row._origIndex = i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue