From eb38afec571cace08bc8094162f5ac66facfab5c Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 14 Jun 2024 12:38:06 +0800 Subject: [PATCH] feat: add referrerpolicy for image Signed-off-by: Ryan Wang --- packages/hyperlink-card/index.html | 1 + packages/hyperlink-card/src/hyperlink-inline-card.ts | 1 + packages/hyperlink-card/src/themes/grid-card.ts | 1 + packages/hyperlink-card/src/themes/regular-card.ts | 12 ++++++++++-- packages/hyperlink-card/src/themes/small-card.ts | 1 + 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/hyperlink-card/index.html b/packages/hyperlink-card/index.html index 8c04e71..f7e781c 100644 --- a/packages/hyperlink-card/index.html +++ b/packages/hyperlink-card/index.html @@ -68,5 +68,6 @@ + diff --git a/packages/hyperlink-card/src/hyperlink-inline-card.ts b/packages/hyperlink-card/src/hyperlink-inline-card.ts index 58e6e79..c769be6 100644 --- a/packages/hyperlink-card/src/hyperlink-inline-card.ts +++ b/packages/hyperlink-card/src/hyperlink-inline-card.ts @@ -60,6 +60,7 @@ export class HyperlinkInlineCard extends LitElement { ? html`` : ''} ${this.siteData.title || this.href} diff --git a/packages/hyperlink-card/src/themes/grid-card.ts b/packages/hyperlink-card/src/themes/grid-card.ts index 484817a..107772c 100644 --- a/packages/hyperlink-card/src/themes/grid-card.ts +++ b/packages/hyperlink-card/src/themes/grid-card.ts @@ -31,6 +31,7 @@ export class HyperlinkGridCard extends LitElement { ` : ''} diff --git a/packages/hyperlink-card/src/themes/regular-card.ts b/packages/hyperlink-card/src/themes/regular-card.ts index 48e9ff0..8933384 100644 --- a/packages/hyperlink-card/src/themes/regular-card.ts +++ b/packages/hyperlink-card/src/themes/regular-card.ts @@ -28,12 +28,20 @@ export class HyperlinkRegularCard extends LitElement { : ''} ${this.siteData?.image ? html`
- +
` : ''} ${!this.siteData?.image && this.siteData?.icon ? html`
- +
` : ''} diff --git a/packages/hyperlink-card/src/themes/small-card.ts b/packages/hyperlink-card/src/themes/small-card.ts index 4758171..31ca3f5 100644 --- a/packages/hyperlink-card/src/themes/small-card.ts +++ b/packages/hyperlink-card/src/themes/small-card.ts @@ -16,6 +16,7 @@ export class HyperlinkSmallCard extends LitElement { ` : ''}