Add tooltip with full date to timestamp component

This commit is contained in:
Simon Ser 2021-09-21 14:34:30 +02:00
parent 11878aaaa9
commit 8e631f97ef

View File

@ -36,7 +36,14 @@ function Timestamp({ date, url }) {
let ss = date.getSeconds().toString().padStart(2, "0");
let timestamp = `${hh}:${mm}:${ss}`;
return html`
<a href=${url} class="timestamp" onClick=${(event) => event.preventDefault()}>${timestamp}</a>
<a
href=${url}
class="timestamp"
title=${date.toLocaleString()}
onClick=${(event) => event.preventDefault()}
>
${timestamp}
</a>
`;
}