Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Remove timeline title
Rūdolfs Ošiņš committed 1 year ago
commit d2a25af485538ae3fd318d9727940a0da1456e1e
parent 1a86e521296899f18cd4ecc19660192c2ab7020b
1 file changed +1 -21
modified src/views/repo/Patch.svelte
@@ -76,7 +76,6 @@
  let labelSaveInProgress: boolean = $state(false);
  let assigneesSaveInProgress: boolean = $state(false);
  let tab: "patch" | "revisions" | "timeline" = $state("patch");
-
  let hideTimeline = $state(false);
  let selectedRevision: Revision = $state(revisions.slice(-1)[0]);

  $effect(() => {
@@ -93,7 +92,6 @@
    editingTitle = false;
    updatedTitle = patch.title;
    selectedRevision = revisions.slice(-1)[0];
-
    hideTimeline = false;
  });

  const project = $derived(repo.payloads["xyz.radicle.project"]!);
@@ -306,9 +304,6 @@
    margin-bottom: 0.5rem;
    color: var(--color-foreground-dim);
  }
-
  .hide {
-
    display: none;
-
  }
</style>

{#snippet icons(status: PatchStatus | undefined)}
@@ -608,22 +603,7 @@
          revision={revisions[0]}
          {config} />
      {:else if tab === "timeline"}
-
        <div>
-
          <!-- svelte-ignore a11y_click_events_have_key_events -->
-
          <div
-
            role="button"
-
            tabindex="0"
-
            class="txt-semibold global-flex"
-
            style:margin-bottom={hideTimeline ? undefined : "1rem"}
-
            style:cursor="pointer"
-
            onclick={() => (hideTimeline = !hideTimeline)}>
-
            <Icon
-
              name={hideTimeline ? "chevron-right" : "chevron-down"} />Timeline
-
          </div>
-
          <div class:hide={hideTimeline}>
-
            <PatchTimeline {activity} patchId={patch.id} />
-
          </div>
-
        </div>
+
        <PatchTimeline {activity} patchId={patch.id} />
      {:else}
        <RevisionComponent
          rid={repo.rid}