Hide image upload progress info when not yet started (#2042)

This commit is contained in:
Anatolij Werle 2023-07-07 11:51:38 +02:00 committed by GitHub
parent a19d8ee5f8
commit 3231f2bd72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}%"}