Hide file size when crawl is running (#648)

This commit is contained in:
sua yoo 2023-02-28 15:52:06 -08:00 committed by GitHub
parent 23795ec5fd
commit d0182a3e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,6 +129,10 @@ export class CrawlListItem extends LitElement {
line-height: 1.4; line-height: 1.4;
} }
.unknownValue {
color: var(--sl-color-neutral-500);
}
.name { .name {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -261,10 +265,12 @@ export class CrawlListItem extends LitElement {
</div> </div>
<div class="col"> <div class="col">
<div class="detail"> <div class="detail">
${this.safeRender( ${this.safeRender((crawl) =>
(crawl) => html`<sl-format-bytes isActive
value=${crawl.fileSize || 0} ? html`<span class="unknownValue">${msg("In Progress")}</span>`
></sl-format-bytes>` : html`<sl-format-bytes
value=${crawl.fileSize || 0}
></sl-format-bytes>`
)} )}
</div> </div>
<div class="desc"> <div class="desc">