mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-08 20:46:16 +08:00
Hide image upload progress info when not yet started (#2042)
This commit is contained in:
parent
a19d8ee5f8
commit
3231f2bd72
1 changed files with 2 additions and 2 deletions
|
@ -42,9 +42,9 @@ defmodule LivebookWeb.SessionLive.InsertImageComponent do
|
||||||
<div :for={entry <- @uploads.image.entries} class="flex flex-col space-y-1">
|
<div :for={entry <- @uploads.image.entries} class="flex flex-col space-y-1">
|
||||||
<div class="flex justify-between text-gray-700">
|
<div class="flex justify-between text-gray-700">
|
||||||
<span><%= entry.client_name %></span>
|
<span><%= entry.client_name %></span>
|
||||||
<span><%= entry.progress %>%</span>
|
<span :if={entry.preflighted?}><%= entry.progress %>%</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-full h-2 rounded-lg bg-blue-200">
|
<div :if={entry.preflighted?} class="w-full h-2 rounded-lg bg-blue-200">
|
||||||
<div
|
<div
|
||||||
class="h-full rounded-lg bg-blue-600 transition-all ease-out duration-1000"
|
class="h-full rounded-lg bg-blue-600 transition-all ease-out duration-1000"
|
||||||
style={"width: #{entry.progress}%"}
|
style={"width: #{entry.progress}%"}
|
||||||
|
|
Loading…
Add table
Reference in a new issue