Tweak commit header

This commit is contained in:
dnlklmn
2024-01-24 12:25:47 +00:00
committed by Rūdolfs Ošiņš
parent 14716208e4
commit 060a7f1b54
3 changed files with 28 additions and 33 deletions
+4 -1
View File
@@ -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);
+12 -16
View File
@@ -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}
+12 -16
View File
@@ -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}