diff --git a/web/src/lib/components/repo/BlobHeader.svelte b/web/src/lib/components/repo/BlobHeader.svelte index c7fc1f633..864d1d80b 100644 --- a/web/src/lib/components/repo/BlobHeader.svelte +++ b/web/src/lib/components/repo/BlobHeader.svelte @@ -70,10 +70,10 @@
-
-
+
+
{#if repo} {timeLabel} @@ -100,7 +100,7 @@
{#if sizeLabel} {sizeLabel} @@ -114,12 +114,14 @@
-
+
{#if repo || (language && languageColor)} -
+
{#if language && languageColor}
{language} @@ -137,21 +139,21 @@ {/if} {#if kind !== "submodule"} -
+
{#if showWrapToggle || showBlameToggle || hasRenderedView(kind)} -
+
{#if showBlameToggle} {blameLoading ? "Blame…" : "Blame"} {/if} {#if showWrapToggle} - + Wrap {/if} diff --git a/web/src/lib/components/repo/BlobView.svelte b/web/src/lib/components/repo/BlobView.svelte index 11fac4bbe..d2b68553b 100644 --- a/web/src/lib/components/repo/BlobView.svelte +++ b/web/src/lib/components/repo/BlobView.svelte @@ -10,7 +10,7 @@ import { baseName, fileHistoryHref } from "$lib/components/repo/urls"; import { createBlame, type BlameSource } from "$lib/components/repo/blame/request.svelte"; import Separator from "$lib/components/ui/Separator.svelte"; - import TabPanel from "$lib/components/ui/TabPanel.svelte"; + import Card from "$lib/components/ui/Card.svelte"; interface Props { ownerHandle: string; @@ -121,7 +121,7 @@ const showWrap = $derived(textViewActive && (overflows || wrap)); - + {#if blameRequest.error} - + {/if} {#if blob.lastCommit && repoName} {:else} - + {/if} {#if blob.kind === "submodule" && blob.submodule} @@ -162,7 +162,7 @@ >.

{:else if blob.fileTooLarge} -

+

This file is too large to render. View raw.

{:else} -

+

Previews are not supported for this file type.

{/if} - + diff --git a/web/src/lib/components/repo/BranchList.svelte b/web/src/lib/components/repo/BranchList.svelte index 006edf28f..75126be2a 100644 --- a/web/src/lib/components/repo/BranchList.svelte +++ b/web/src/lib/components/repo/BranchList.svelte @@ -19,10 +19,10 @@ const base = $derived(`/${ownerHandle}/${repoName}`); -
+
{#each branches as branch (branch.name)}
-
+ {#if branch.name !== currentRef} @@ -48,7 +50,7 @@ href={resolve( `${base}/compare/${encodeURIComponent(currentRef)}...${encodeURIComponent(branch.name)}` as "/" )} - class="ml-2 shrink-0" + class="ml-xs shrink-0" title="Compare branches or tags" > Compare diff --git a/web/src/lib/components/repo/BranchTable.svelte b/web/src/lib/components/repo/BranchTable.svelte index 395f757b5..a9fa39289 100644 --- a/web/src/lib/components/repo/BranchTable.svelte +++ b/web/src/lib/components/repo/BranchTable.svelte @@ -19,38 +19,38 @@ const subject = (message?: string) => message?.split("\n\n")[0] ?? ""; -
-

Branches

+
+

Branches

{#if branches.length === 0} -

This repository has no branches.

+

This repository has no branches.

{:else}