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