fixes bug with hidden uneditable commit messages

This commit is contained in:
Scott Chacon 2024-04-29 17:34:44 +02:00
parent 27480c503e
commit 698791ba08

View File

@ -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>