mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-11-16 08:30:43 +08:00
Show the email alongside each name. Co-authors are read from the commit message trailers and listed as their own section. The trigger avatars now stack and fan apart on hover, and cover everyone credited on the commit rather than just the author and committer. Timestamps now show both committed and authored times in the tooltip.
34 lines
717 B
Svelte
34 lines
717 B
Svelte
<script lang="ts">
|
|
import type { Commit } from "@bindings/repo/Commit";
|
|
import type { Snippet } from "svelte";
|
|
|
|
import * as utils from "@app/lib/utils";
|
|
|
|
import CommitAuthors from "@app/components/CommitAuthors.svelte";
|
|
|
|
interface Props {
|
|
children: Snippet;
|
|
commit: Commit;
|
|
}
|
|
|
|
const { children, commit }: Props = $props();
|
|
</script>
|
|
|
|
<style>
|
|
.authorship {
|
|
display: flex;
|
|
font: var(--txt-body-m-regular);
|
|
column-gap: 0.5rem;
|
|
align-items: center;
|
|
white-space: nowrap;
|
|
}
|
|
</style>
|
|
|
|
<div class="authorship">
|
|
<CommitAuthors {commit} />
|
|
{@render children()}
|
|
<div title={utils.commitTimes(commit)}>
|
|
{utils.formatTimestamp(commit.committer.time * 1000)}
|
|
</div>
|
|
</div>
|