mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-04 15:53:30 +03:00
Add back hacky reset head commit button
- will be updated soon
This commit is contained in:
parent
7e7eac663f
commit
2b89f67040
@ -1,4 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import IconButton from '$lib/components/IconButton.svelte';
|
||||||
import type { DraggableCommit, DraggableFile, DraggableHunk } from '$lib/draggables';
|
import type { DraggableCommit, DraggableFile, DraggableHunk } from '$lib/draggables';
|
||||||
import { dropzone } from '$lib/utils/draggable';
|
import { dropzone } from '$lib/utils/draggable';
|
||||||
import type { BaseBranch, Commit } from '$lib/vbranches/types';
|
import type { BaseBranch, Commit } from '$lib/vbranches/types';
|
||||||
@ -22,7 +23,6 @@
|
|||||||
<div class="line" />
|
<div class="line" />
|
||||||
{/if}
|
{/if}
|
||||||
<div class="connector" />
|
<div class="connector" />
|
||||||
{#if isHeadCommit}{/if}
|
|
||||||
<div
|
<div
|
||||||
class="relative h-full flex-grow overflow-hidden"
|
class="relative h-full flex-grow overflow-hidden"
|
||||||
use:dropzone={{
|
use:dropzone={{
|
||||||
@ -51,6 +51,11 @@
|
|||||||
|
|
||||||
<CommitCard {commit} {projectId} commitUrl={base?.commitUrl(commit.id)} />
|
<CommitCard {commit} {projectId} commitUrl={base?.commitUrl(commit.id)} />
|
||||||
</div>
|
</div>
|
||||||
|
{#if isHeadCommit}
|
||||||
|
<div class="reset-head">
|
||||||
|
<IconButton icon="cross-small" on:click={() => resetHeadCommit()} />
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style lang="postcss">
|
<style lang="postcss">
|
||||||
@ -76,4 +81,9 @@
|
|||||||
border-left: 1px solid var(--clr-theme-container-outline-light);
|
border-left: 1px solid var(--clr-theme-container-outline-light);
|
||||||
border-radius: 0 0 0 8px;
|
border-radius: 0 0 0 8px;
|
||||||
}
|
}
|
||||||
|
.reset-head {
|
||||||
|
position: absolute;
|
||||||
|
top: var(--space-2);
|
||||||
|
right: var(--space-2);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user