mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 06:22:28 +03:00
fixes bug with hidden uneditable commit messages
This commit is contained in:
parent
27480c503e
commit
698791ba08
@ -116,30 +116,36 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="commit__row">
|
<div class="commit__row">
|
||||||
{#if isUndoable && !showFiles}
|
{#if isUndoable}
|
||||||
{#if commit.descriptionTitle}
|
{#if !showFiles}
|
||||||
<span class="commit__title text-semibold text-base-12" class:truncate={!showFiles}>
|
{#if commit.descriptionTitle}
|
||||||
{commit.descriptionTitle}
|
<span class="commit__title text-semibold text-base-12" class:truncate={!showFiles}>
|
||||||
</span>
|
{commit.descriptionTitle}
|
||||||
{:else}
|
</span>
|
||||||
<span
|
{:else}
|
||||||
class="commit__title_no_desc text-base-12 text-zinc-400"
|
<span
|
||||||
class:truncate={!showFiles}
|
class="commit__title_no_desc text-base-12 text-zinc-400"
|
||||||
|
class:truncate={!showFiles}
|
||||||
|
>
|
||||||
|
<i>empty commit message</i>
|
||||||
|
</span>
|
||||||
|
{/if}
|
||||||
|
<Tag
|
||||||
|
style="ghost"
|
||||||
|
kind="solid"
|
||||||
|
icon="undo-small"
|
||||||
|
clickable
|
||||||
|
on:click={(e) => {
|
||||||
|
currentCommitMessage.set(commit.description);
|
||||||
|
e.stopPropagation();
|
||||||
|
undoCommit(commit);
|
||||||
|
}}>Undo</Tag
|
||||||
>
|
>
|
||||||
<i>empty commit message</i>
|
|
||||||
</span>
|
|
||||||
{/if}
|
{/if}
|
||||||
<Tag
|
{:else}
|
||||||
style="ghost"
|
<span class="commit__title text-base-12" class:truncate={!showFiles}>
|
||||||
kind="solid"
|
{commit.descriptionTitle}
|
||||||
icon="undo-small"
|
</span>
|
||||||
clickable
|
|
||||||
on:click={(e) => {
|
|
||||||
currentCommitMessage.set(commit.description);
|
|
||||||
e.stopPropagation();
|
|
||||||
undoCommit(commit);
|
|
||||||
}}>Undo</Tag
|
|
||||||
>
|
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user