diff --git a/gitbutler-ui/src/lib/components/CommitCard.svelte b/gitbutler-ui/src/lib/components/CommitCard.svelte index 2708bf9dd..cb1bf480a 100644 --- a/gitbutler-ui/src/lib/components/CommitCard.svelte +++ b/gitbutler-ui/src/lib/components/CommitCard.svelte @@ -16,6 +16,7 @@ import { LocalFile, RemoteCommit, Commit, RemoteFile } from '$lib/vbranches/types'; import { open } from '@tauri-apps/api/shell'; import { writable, type Writable } from 'svelte/store'; + import { slide } from 'svelte/transition'; import type { ContentSection, HunkSection } from '$lib/utils/fileSections'; import type { BranchController } from '$lib/vbranches/branchController'; @@ -57,46 +58,48 @@ use:draggable={commit instanceof Commit ? draggableCommit(commit.branchId, commit) : nonDraggable()} + class="commit" + class:is-head-commit={isHeadCommit} > -
-
-
- - {commit.description} - - {#if isHeadCommit && !isUnapplied} - { - e.stopPropagation(); - resetHeadCommit(); - }}>Undo - {/if} -
- -
-
- Gravatar for {commit.author.email} - {commit.author.name} -
- - - -
+
+
+ + {commit.description} + + {#if isHeadCommit && !isUnapplied} + { + e.stopPropagation(); + resetHeadCommit(); + }}>Undo + {/if}
- {#if showFiles} +
+
+ Gravatar for {commit.author.email} + {commit.author.name} +
+ + + +
+
+ + {#if showFiles} +
{/if}
- {/if} -
+
+ {/if}