Improve stashed branch view

This commit is contained in:
Mattias Granlund 2023-11-12 21:42:34 +01:00
parent 1882b8e736
commit 6e2139b224

View File

@ -1,7 +1,6 @@
<script lang="ts">
import type { PageData } from './$types';
import { page } from '$app/stores';
import ProjectHeader from '../../ProjectHeader.svelte';
import BranchLane from '../../components/BranchLane.svelte';
export let data: PageData;
@ -19,32 +18,26 @@
</script>
<div class="h-full flex-grow overflow-y-auto overscroll-none p-3">
<div
class="flex min-w-min max-w-4xl flex-col gap-y-6 overflow-visible rounded-lg px-5 py-4"
style:background-color="var(--bg-surface)"
style:border-color="var(--border-surface)"
>
{#if $vbranchesState.isLoading}
<p>Loading...</p>
{:else if $vbranchesState.isError}
<p>Error...</p>
{:else if $vbranchStore}
{#if branch}
<BranchLane
{branch}
{branchController}
base={$baseBranchStore}
{cloud}
{projectId}
maximized={true}
cloudEnabled={false}
projectPath=""
readonly={true}
githubContext={$githubContextStore}
/>
{:else}
<p>Branch no longer exists</p>
{/if}
{#if $vbranchesState.isLoading}
<p>Loading...</p>
{:else if $vbranchesState.isError}
<p>Error...</p>
{:else if $vbranchStore}
{#if branch}
<BranchLane
{branch}
{branchController}
base={$baseBranchStore}
{cloud}
{projectId}
maximized={true}
cloudEnabled={false}
projectPath=""
readonly={true}
githubContext={$githubContextStore}
/>
{:else}
<p>Branch no longer exists</p>
{/if}
</div>
{/if}
</div>