Move settings and change vbranch label

This commit is contained in:
Mattias Granlund 2023-11-17 15:31:50 +01:00
parent bbcb5c12ca
commit 74a28e166a
4 changed files with 14 additions and 12 deletions

View File

@ -41,10 +41,10 @@
<div class="truncate">
<slot />
</div>
<div class="shrink-0">
{#if isExternal}
{#if isExternal}
<div class="shrink-0">
<IconExternalLink class="h-3.5 w-3.5" />
{/if}
</div>
</div>
{/if}
</a>
{/if}

View File

@ -9,7 +9,7 @@
<a
{href}
class="mx-4 block rounded px-3 py-2 font-semibold"
class="mx-4 flex items-center gap-x-1 rounded px-3 py-2 font-semibold"
style:background-color={selected ? 'var(--bg-surface-highlight)' : undefined}
>
<svelte:component this={icon} class="text-color-4 mr-1 inline h-4 w-4 align-middle" />

View File

@ -5,10 +5,12 @@
import Tooltip from '$lib/components/Tooltip.svelte';
import IconEmail from '$lib/icons/IconEmail.svelte';
import IconHome from '$lib/icons/IconHome.svelte';
import IconSettings from '$lib/icons/IconSettings.svelte';
import IconSpinner from '$lib/icons/IconSpinner.svelte';
import * as events from '$lib/utils/events';
export let user: User | undefined;
export let projectId: string | undefined;
</script>
<div
@ -16,15 +18,16 @@
style:background-color="var(--bg-surface-highlight)"
style:border-color="var(--border-surface)"
>
<div class="flex items-center">
<Link href="/" class="p-1">
<IconHome />
</Link>
<div class="flex items-center gap-x-1">
<Link href="/" class="p-1"><IconHome /></Link>
<Tooltip label="Send feedback">
<button class="p-1 align-middle" on:click={() => events.emit('openSendIssueModal')}>
<IconEmail class="align-top" />
</button>
</Tooltip>
<Link href={`/${projectId}/settings`} class="p-1">
<IconSettings />
</Link>
{#if $isLoading}
<Tooltip label={loadStack.join('\n')}>
<IconSpinner class="scale-75" />

View File

@ -53,8 +53,7 @@
<BaseBranchCard {project} {baseBranchService} {branchController} {prService} />
</div>
<div class="mb-4">
<DomainButton href={`/${project.id}/board`} icon={IconBranch}>Active branches</DomainButton>
<DomainButton href={`/${project.id}/settings`} icon={IconSettings}>Settings</DomainButton>
<DomainButton href={`/${project.id}/board`} icon={IconBranch}>Applied branches</DomainButton>
</div>
<YourBranches {project} {branchController} {vbranchService} />
{#if githubContext}
@ -62,6 +61,6 @@
{:else}
<RemoteBranches {remoteBranchService} projectId={project.id}></RemoteBranches>
{/if}
<Footer {user} />
<Footer {user} projectId={project.id} />
<AppUpdater {update} />
</div>