mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Tweak commit header
This commit is contained in:
@@ -69,7 +69,8 @@
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding-bottom: 1rem;
|
||||
padding: 1rem 1rem 0.5rem 1rem;
|
||||
background-color: var(--color-background-default);
|
||||
}
|
||||
.additions {
|
||||
color: var(--color-foreground-success);
|
||||
@@ -81,6 +82,8 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
background-color: var(--color-background-default);
|
||||
padding: 1rem;
|
||||
}
|
||||
.summary {
|
||||
font-size: var(--font-size-small);
|
||||
|
||||
@@ -17,35 +17,31 @@
|
||||
|
||||
<style>
|
||||
.commit {
|
||||
padding: 1rem;
|
||||
background-color: var(--color-background-float);
|
||||
}
|
||||
.header {
|
||||
margin-bottom: 3rem;
|
||||
padding: 0 1rem 1rem 1rem;
|
||||
border-radius: var(--border-radius-small);
|
||||
}
|
||||
.title {
|
||||
font-weight: var(--font-weight-semibold);
|
||||
border-bottom: 1px solid var(--color-border-hint);
|
||||
}
|
||||
.description {
|
||||
font-family: var(--font-family-monospace);
|
||||
margin: 1rem 0;
|
||||
white-space: pre-wrap;
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
<Layout {baseUrl} {project}>
|
||||
<div class="commit">
|
||||
<div class="header">
|
||||
<span class="title">
|
||||
<InlineMarkdown
|
||||
stripEmphasizedStyling
|
||||
fontSize="large"
|
||||
content={header.summary} />
|
||||
</span>
|
||||
<pre class="description txt-small">{header.description}</pre>
|
||||
<CommitAuthorship {header}>
|
||||
<span class="global-commit">{formatCommit(header.id)}</span>
|
||||
</CommitAuthorship>
|
||||
<div style="display:flex; flex-direction: column; gap: 0.5rem;">
|
||||
<InlineMarkdown fontSize="large" content={header.summary} />
|
||||
<CommitAuthorship {header}>
|
||||
<span class="global-commit">{formatCommit(header.id)}</span>
|
||||
</CommitAuthorship>
|
||||
</div>
|
||||
{#if header.description}
|
||||
<pre class="description txt-small">{header.description}</pre>{/if}
|
||||
</div>
|
||||
<Changeset
|
||||
{baseUrl}
|
||||
|
||||
@@ -848,14 +848,12 @@
|
||||
</div>
|
||||
<div class="bottom">
|
||||
{#if view.name === "diff"}
|
||||
<div style:margin-top="1rem">
|
||||
<Changeset
|
||||
{baseUrl}
|
||||
projectId={project.id}
|
||||
revision={view.toCommit}
|
||||
files={view.files}
|
||||
diff={view.diff} />
|
||||
</div>
|
||||
<Changeset
|
||||
{baseUrl}
|
||||
projectId={project.id}
|
||||
revision={view.toCommit}
|
||||
files={view.files}
|
||||
diff={view.diff} />
|
||||
{:else if view.name === "activity"}
|
||||
{#each timelineTuple as [revision, timelines], index}
|
||||
{@const previousRevision =
|
||||
@@ -922,14 +920,12 @@
|
||||
</div>
|
||||
{/each}
|
||||
{:else if view.name === "changes"}
|
||||
<div style:margin-top="1rem">
|
||||
<Changeset
|
||||
{baseUrl}
|
||||
projectId={project.id}
|
||||
revision={view.oid}
|
||||
files={view.files}
|
||||
diff={view.diff} />
|
||||
</div>
|
||||
<Changeset
|
||||
{baseUrl}
|
||||
projectId={project.id}
|
||||
revision={view.oid}
|
||||
files={view.files}
|
||||
diff={view.diff} />
|
||||
{:else}
|
||||
{utils.unreachable(view)}
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user