diff --git a/packages/ui/src/lib/settings/userSettings.ts b/packages/ui/src/lib/settings/userSettings.ts index cff09a8ef..802808d58 100644 --- a/packages/ui/src/lib/settings/userSettings.ts +++ b/packages/ui/src/lib/settings/userSettings.ts @@ -11,6 +11,7 @@ export interface Settings { theme?: string; trayWidth: number; vbranchExpandableHeight: number; + stashedBranchesHeight: number; defaultLaneWidth: number; defaultTreeHeight: number; zoom: number; @@ -22,9 +23,10 @@ const defaults: Settings = { bottomPanelHeight: 200, peekTrayWidth: 480, trayWidth: 320, - defaultLaneWidth: 380, + defaultLaneWidth: 460, defaultTreeHeight: 100, - vbranchExpandableHeight: 320, + vbranchExpandableHeight: 150, + stashedBranchesHeight: 150, zoom: 1 }; diff --git a/packages/ui/src/routes/[projectId]/components/BranchLane.svelte b/packages/ui/src/routes/[projectId]/components/BranchLane.svelte index b5cbd2437..d85d8ed8e 100644 --- a/packages/ui/src/routes/[projectId]/components/BranchLane.svelte +++ b/packages/ui/src/routes/[projectId]/components/BranchLane.svelte @@ -935,6 +935,10 @@ on:width={(e) => { laneWidth = e.detail; lscache.set(laneWidthKey + branch.id, e.detail, 7 * 1440); // 7 day ttl + userSettings.update((s) => ({ + ...s, + defaultLaneWidth: e.detail + })); }} /> {/if} diff --git a/packages/ui/src/routes/[projectId]/navigation/Branches.svelte b/packages/ui/src/routes/[projectId]/navigation/Branches.svelte index 24533b21c..a7a7f983f 100644 --- a/packages/ui/src/routes/[projectId]/navigation/Branches.svelte +++ b/packages/ui/src/routes/[projectId]/navigation/Branches.svelte @@ -12,7 +12,6 @@ export let branchService: BranchService; export let projectId: string; - export let grow: boolean; $: branches$ = branchService.branches$; let viewport: HTMLElement; @@ -24,12 +23,21 @@ }; + { + userSettings.update((s) => ({ + ...s, + vbranchExpandableHeight: e.detail + })); + }} +/> Other branches -
+
{#if $branches$} @@ -42,22 +50,8 @@
- { - userSettings.update((s) => ({ - ...s, - vbranchExpandableHeight: e.detail - })); - }} -/> -