Luke Jones

lukeonline - commit 8fc28b7

refactor: improve formatting of commit lists8fc28b7bc6c7de46f85e474a6ebbba4b0ea780e4LukeJ<luke.jones.2567@gmail.com>2026-09-29T21:30:11+01:00
diff --git a/src/pages/projects/[name]/commits/index.astro b/src/pages/projects/[name]/commits/index.astro index 048b2ae..7608724 100644 --- a/src/pages/projects/[name]/commits/index.astro +++ b/src/pages/projects/[name]/commits/index.astro @@ -18,24 +18,26 @@ const { name } = Astro.params const commits = getCommits(name!) --- -<Base title={`${name}`}> - <table> +<Base title={`${name} - commits`}> + <table class="w-full"> + <tr> + <th class="text-left">sha</th> + <th class="text-left">Message</th> + <th class="text-left">Date</th> + </tr> { commits.reverse().map((commit) => ( <tr> - <td> + <td class="max-w-12 min-w-12"> <a href={`/projects/${name}/commit/${commit.sha}`}> <code class="text-sm">{commit.shortSha}</code> </a> </td> - <td class="overflow-hidden text-ellipsis"> + <td class="whitespace-nowrap overflow-hidden max-w-72 text-ellipsis"> <code class="text-sm">{commit.message}</code> </td> <td> - <code class="text-sm">{commit.author.name}</code> - </td> - <td> - <code class="text-sm">{commit.date}</code> + {new Date(commit.date).toLocaleDateString()} </td> </tr> ))