show staged / not staged on the project page

This commit is contained in:
Nikita Galaiko 2023-03-30 10:19:49 +02:00
parent 10da421c10
commit 6cb7456f15

View File

@ -284,7 +284,11 @@
<ul class="rounded border border-yellow-400 bg-yellow-500 p-4 font-mono text-yellow-900">
{#each $statuses as activity}
<li class="flex w-full gap-2">
<span class="font-semibold">{activity.status.slice(0, 1).toUpperCase()}</span>
<span
class:text-left={activity.staged}
class:text-right={!activity.staged}
class="w-[3ch] font-semibold">{activity.status.slice(0, 1).toUpperCase()}</span
>
<span class="truncate" use:collapsable={{ value: activity.path, separator: '/' }} />
</li>
{/each}