Skip to content

Commit

Permalink
fix person image stretch
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnickii committed Jan 24, 2024
1 parent e79fbdc commit fbc1734
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ $person-line4-text-line-height: var(--person-line4-text-line-height, 16px);
border: $person-avatar-border;
border-radius: $person-avatar-border-radius;
margin-block-start: $person-avatar-top-spacing;
object-fit: cover;
object-position: center top;
}

.initials,
Expand Down
4 changes: 4 additions & 0 deletions stories/components/person/person.properties.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ export const changeUserId = () => html`
</script>
`;

export const personImage = () => html`
<mgt-person person-query="me" view="fourLines" fetch-image person-image="https://images.pexels.com/photos/1542085/pexels-photo-1542085.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"></mgt-person>
`;

export const personFallbackDetails = () => html`
<div class="example">
<mgt-person person-query="mbowen" view="twoLines" show-presence fallback-details='{"displayName":"Megan Bowen"}'></mgt-person>
Expand Down

0 comments on commit fbc1734

Please sign in to comment.