Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Tweak commit header
dnlklmn committed 2 years ago
commit 060a7f1b54b3d7f25ba925e54a0e314a445ab4d9
parent 14716208e42efbd9a515d95d4c7775845a93bc70
3 files changed +28 -33
modified src/views/projects/Changeset.svelte
@@ -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);
modified src/views/projects/Commit.svelte
@@ -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}
modified src/views/projects/Patch.svelte
@@ -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}