+
+
{@render action()}
@@ -47,10 +26,9 @@
.action-row {
position: relative;
display: flex;
-
+ background-color: var(--clr-bg-1);
+ border-top: 1px solid var(--clr-border-3);
overflow: hidden;
-
- transition: border-top var(--transition-fast);
}
.background-color {
@@ -61,9 +39,15 @@
display: flex;
flex-direction: column;
width: 100%;
- padding-top: 10px;
+ padding-top: 14px;
padding-right: 14px;
- padding-bottom: 10px;
+ padding-bottom: 14px;
+ }
+
+ .commit-line-wrapper {
+ position: relative;
+ margin-left: 20px;
+ margin-right: 20px;
}
/* MODIFIERS */
diff --git a/apps/desktop/src/lib/commit/CommitList.svelte b/apps/desktop/src/lib/commit/CommitList.svelte
index 7d1ddaae0..0d40a9210 100644
--- a/apps/desktop/src/lib/commit/CommitList.svelte
+++ b/apps/desktop/src/lib/commit/CommitList.svelte
@@ -15,14 +15,13 @@
BranchController,
type SeriesIntegrationStrategy
} from '$lib/vbranches/branchController';
- import { DetailedCommit, VirtualBranch, type CommitStatus } from '$lib/vbranches/types';
+ import { DetailedCommit, VirtualBranch } from '$lib/vbranches/types';
import { getContext } from '@gitbutler/shared/context';
import { getContextStore } from '@gitbutler/shared/context';
import Button from '@gitbutler/ui/Button.svelte';
import Modal from '@gitbutler/ui/Modal.svelte';
import Line from '@gitbutler/ui/commitLines/Line.svelte';
- import { LineManagerFactory, LineSpacer } from '@gitbutler/ui/commitLines/lineManager';
- import type { Snippet } from 'svelte';
+ import { LineManagerFactory } from '@gitbutler/ui/commitLines/lineManager';
const integrationStrategies = {
default: {
@@ -32,7 +31,7 @@
action: integrate
},
reset: {
- label: 'Reset to remote',
+ label: 'Reset to remoteā¦',
stretegy: 'hardreset',
style: 'error',
action: confirmReset
@@ -46,8 +45,6 @@
patches: DetailedCommit[];
seriesName: string;
isUnapplied: boolean;
- pushButton?: Snippet<[{ disabled: boolean }]>;
- hasConflicts: boolean;
stackingReorderDropzoneManager: StackingReorderDropzoneManager;
isBottom?: boolean;
}
@@ -56,8 +53,6 @@
patches,
seriesName,
isUnapplied,
- pushButton,
- hasConflicts,
stackingReorderDropzoneManager,
isBottom = false
}: Props = $props();
@@ -86,9 +81,9 @@
const hasRemoteCommits = $derived(remoteOnlyPatches.length > 0);
let isIntegratingCommits = $state(false);
- const topPatch = $derived(patches[0]);
- const branchType = $derived
(topPatch?.status ?? 'local');
- const isBranchIntegrated = $derived(branchType === 'integrated');
+ // const topPatch = $derived(patches[0]);
+ // const branchType = $derived(topPatch?.status ?? 'local');
+ // const isBranchIntegrated = $derived(branchType === 'integrated');
let confirmResetModal = $state>();
@@ -139,18 +134,22 @@
isHeadCommit={commit.id === headCommit?.id}
>
{#snippet lines()}
-
+
{/snippet}
{/each}
- {#snippet action()}
- {@render integrateUpstreamButton('default')}
- {/snippet}
+
+
+ {#snippet action()}
+ {@render integrateUpstreamButton('default')}
+ {/snippet}
+
{/if}
-
-
{#if patches.length > 0}
@@ -183,17 +182,23 @@
{#if lastDivergentCommit?.id === commit.id}
-
+
+ {#snippet action()}
+ {@render integrateUpstreamButton('reset')}
+ {/snippet}
+
+
{/if}
{/each}
{/if}
- {#if remoteOnlyPatches.length > 0 && patches.length === 0 && !isBranchIntegrated && pushButton}
+
+
{@render children()}