diff --git a/web/src/lib/components/repo/DiffView.stories.svelte b/web/src/lib/components/repo/DiffView.stories.svelte index e985af8e0..082df582f 100644 --- a/web/src/lib/components/repo/DiffView.stories.svelte +++ b/web/src/lib/components/repo/DiffView.stories.svelte @@ -384,6 +384,12 @@ export const formatPercent = (ratio: number): string => { + + +
+ headers dock under. the button labels drop out below the width + where the full toolbar still fits on that one line -->
{#if !treeOpen} @@ -202,37 +203,36 @@ icon={allOpen ? FoldVertical : UnfoldVertical} title={allOpen ? "Collapse lines" : "Expand lines"} onclick={() => setAllOpen(!allOpen)} - variant="ghost">{allOpen ? "Collapse" : "Expand"} + + {#if downloadUrls} {#snippet trigger()} - Download commit + {/snippet} - + icon={FileCode}>As a patch file - + icon={FileDiff}>As a diff file {/if} @@ -248,7 +248,9 @@ onclick={styleHref ? undefined : () => (localStyle = style)} {...segmentProps(diffStyle === style)} > - {style === "split" ? "Split" : "Unified"} + {/each}