feat(dees-tile): unify tile metadata into a consistent bottom info bar and add PDF file-size display

This commit is contained in:
2026-03-10 16:04:28 +00:00
parent d0105e1b80
commit a396dfea12
14 changed files with 185 additions and 234 deletions

View File

@@ -59,9 +59,7 @@ export abstract class DeesTileBase extends DeesElement {
${!this.loading && !this.error ? this.renderTileContent() : ''}
${this.label ? html`
<div class="tile-label">${this.label}</div>
` : ''}
${this.renderBottomBar()}
</div>
`;
}
@@ -69,6 +67,11 @@ export abstract class DeesTileBase extends DeesElement {
/** Subclasses implement this to render their specific content */
protected abstract renderTileContent(): TemplateResult;
/** Subclasses override this to render a bottom info bar with metadata */
protected renderBottomBar(): TemplateResult | string {
return '';
}
public async connectedCallback(): Promise<void> {
await super.connectedCallback();
this.setupIntersectionObserver();