Skip to content

Commit

Permalink
fix(ui): aligned task indicator (podman-desktop#9363)
Browse files Browse the repository at this point in the history
Signed-off-by: axel7083 <[email protected]>
  • Loading branch information
axel7083 authored Oct 14, 2024
1 parent 4bda677 commit 093409e
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions packages/renderer/src/lib/statusbar/TaskIndicator.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ function toggleTaskManager(): void {
</script>

{#if runningTasks.length > 0}
<Tooltip top tip={title}>
<button aria-label="Toggle Task Manager" onclick={toggleTaskManager}>
<div class="flex items-center gap-x-2">
<span role="status" class="max-w-32 text-ellipsis overflow-hidden whitespace-nowrap">{title}</span>
{#if (progress ?? 0) >= 0}
<ProgressBar height="h-1" width="w-20" progress={progress} />
{/if}
</div>
</button>
</Tooltip>
<div class="flex items-center">
<Tooltip top tip={title}>
<button aria-label="Toggle Task Manager" onclick={toggleTaskManager}>
<div class="flex items-center gap-x-2">
<span role="status" class="max-w-32 text-ellipsis overflow-hidden whitespace-nowrap">{title}</span>
{#if (progress ?? 0) >= 0}
<ProgressBar height="h-1" width="w-20" progress={progress} />
{/if}
</div>
</button>
</Tooltip>
</div>
{/if}

0 comments on commit 093409e

Please sign in to comment.