mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-02 07:53:55 +03:00
Improve stashed branch view
This commit is contained in:
parent
1882b8e736
commit
6e2139b224
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user