Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 90cf573

Browse files
feat: the custom logo might be square
1 parent 1a93fa7 commit 90cf573

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

studio/src/app/pages/core/app-settings/app-settings.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,14 +792,23 @@ export class AppHome {
792792
onIonInput={($event: CustomEvent<KeyboardEvent>) => this.handleSocialInput($event, 'custom')}></ion-input>
793793
</ion-item>,
794794

795+
this.renderCustomLogo(),
796+
];
797+
}
798+
799+
private renderCustomLogo() {
800+
return [
795801
<p class="ion-margin-top">
796802
<small>A logo for this custom address</small>
797803
</p>,
798804
<div class="avatar">
799805
{this.user && this.user.data && this.user.data.social && this.user.data.social.custom_logo_url ? (
800-
<app-avatar src={this.user.data.social.custom_logo_url} aria-label="Custom logo"></app-avatar>
806+
<deckgo-lazy-img slot="icon" img-src={this.user.data.social.custom_logo_url} aria-label="Custom logo"></deckgo-lazy-img>
801807
) : (
802-
<deckgo-lazy-img slot="icon" svg-src={`${this.config.globalAssetsUrl}/icons/ionicons/globe.svg`} aria-label="Web"></deckgo-lazy-img>
808+
<deckgo-lazy-img
809+
slot="icon"
810+
svg-src={`${this.config.globalAssetsUrl}/icons/ionicons/globe.svg`}
811+
aria-label="Custom logo image placeholder"></deckgo-lazy-img>
803812
)}
804813
<input
805814
id="inputCustomLogo"

0 commit comments

Comments
 (0)