Skip to content

Commit f66a22c

Browse files
authored
Update login person card properties (#415)
1 parent 177aa22 commit f66a22c

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/components/mgt-login/mgt-login.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,19 @@ export class MgtLogin extends MgtBaseComponent {
222222
if (!this.userDetails) {
223223
return;
224224
}
225+
const avatarSize = 'large';
225226

226227
return html`
227228
<div class="popup">
228229
<div class="popup-content">
229230
<div>
230-
<mgt-person .personDetails=${this.userDetails} .personImage=${this._image} show-name show-email />
231+
<mgt-person
232+
.personDetails=${this.userDetails}
233+
.personImage=${this._image}
234+
.avatarSize=${avatarSize}
235+
show-name
236+
show-email
237+
/>
231238
</div>
232239
<div class="popup-commands">
233240
<ul>
@@ -251,8 +258,14 @@ export class MgtLogin extends MgtBaseComponent {
251258
*/
252259
protected renderButtonContent() {
253260
if (this.userDetails) {
261+
const avatarSize = 'small';
254262
return html`
255-
<mgt-person .personDetails=${this.userDetails} .personImage=${this._image} show-name />
263+
<mgt-person
264+
.personDetails=${this.userDetails}
265+
.personImage=${this._image}
266+
.avatarSize=${avatarSize}
267+
show-name
268+
/>
256269
`;
257270
} else {
258271
return html`

0 commit comments

Comments
 (0)