Put app icons in paste link dialog

This commit is contained in:
nathan 2024-04-17 11:53:24 -06:00
parent e7571094ef
commit c3d74620e8
2 changed files with 6 additions and 1 deletions

View File

@ -62,6 +62,7 @@ export default css`
padding-inline-end: var(--sl-spacing-2x-small);
}
.file et2-image,
.file et2-vfs-mime {
/* line-height-normal has no unit */
height: calc(var(--sl-line-height-normal) * 1em);

View File

@ -72,7 +72,11 @@ export class Et2VfsSelectRow extends Et2Widget(LitElement)
>
<sl-icon part="checked-icon" class="file__check" name="check-lg" aria-hidden="true"></sl-icon>
<slot part="prefix" name="prefix" class="file__prefix"></slot>
<et2-vfs-mime .value=${this.value}></et2-vfs-mime>
${typeof this.value.icon == "string" ? html`
<et2-image src=${this.value.icon}></et2-image>` :
html`
<et2-vfs-mime .value=${this.value}></et2-vfs-mime>`
}
${this.value.name}
<slot part="suffix" name="suffix" class="file__suffix"></slot>
</div>