fix(coverage): align progress percentage with bar, not title
This commit is contained in:
parent
824fe480aa
commit
cb04cdd1d9
1 changed files with 12 additions and 10 deletions
|
|
@ -38,26 +38,28 @@
|
||||||
|
|
||||||
<%= if @coverage.status == "computing" do %>
|
<%= if @coverage.status == "computing" do %>
|
||||||
<div class="mb-6 rounded-lg border border-yellow-200 bg-yellow-50 dark:border-yellow-900/50 dark:bg-yellow-900/20 p-4">
|
<div class="mb-6 rounded-lg border border-yellow-200 bg-yellow-50 dark:border-yellow-900/50 dark:bg-yellow-900/20 p-4">
|
||||||
<div class="flex items-center gap-3">
|
<div class="flex items-start gap-3">
|
||||||
<.icon
|
<.icon
|
||||||
name="hero-arrow-path"
|
name="hero-arrow-path"
|
||||||
class="h-5 w-5 text-yellow-700 dark:text-yellow-400 animate-spin"
|
class="h-5 w-5 text-yellow-700 dark:text-yellow-400 animate-spin shrink-0"
|
||||||
/>
|
/>
|
||||||
<div class="flex-1">
|
<div class="flex-1">
|
||||||
<p class="text-sm font-medium text-yellow-900 dark:text-yellow-200">
|
<p class="text-sm font-medium text-yellow-900 dark:text-yellow-200">
|
||||||
{t("Computing coverage…")}
|
{t("Computing coverage…")}
|
||||||
</p>
|
</p>
|
||||||
<div class="mt-1 h-2 w-full bg-yellow-200 dark:bg-yellow-900 rounded-full overflow-hidden">
|
<div class="mt-1 flex items-center gap-3">
|
||||||
<div
|
<div class="flex-1 h-2 bg-yellow-200 dark:bg-yellow-900 rounded-full overflow-hidden">
|
||||||
class="h-full bg-yellow-600 dark:bg-yellow-500 transition-all"
|
<div
|
||||||
style={"width: #{@coverage.progress_pct}%"}
|
class="h-full bg-yellow-600 dark:bg-yellow-500 transition-all"
|
||||||
>
|
style={"width: #{@coverage.progress_pct}%"}
|
||||||
|
>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<span class="text-sm text-yellow-800 dark:text-yellow-300 font-mono shrink-0">
|
||||||
|
{@coverage.progress_pct}%
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span class="text-sm text-yellow-800 dark:text-yellow-300 font-mono">
|
|
||||||
{@coverage.progress_pct}%
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue