Skip to content

Commit a1b2ca9

Browse files
authored
Merge pull request #483 from upfluence/oc/DRA-1909
Change placeholder avatar on OSS::Avatar
2 parents 9e5f906 + aa6956b commit a1b2ca9

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

addon/components/o-s-s/avatar.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface OSSAvatarArgs {
1919
loading?: boolean;
2020
}
2121

22-
export const DEFAULT_IMAGE_URL: string = '/assets/images/upfluence-white-logo.svg';
22+
export const DEFAULT_IMAGE_URL: string = '/assets/images/avatar-placeholder.svg';
2323

2424
export default class OSSAvatar extends Component<OSSAvatarArgs> {
2525
@tracked hasError: boolean = false;

app/styles/atoms/avatar.less

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
.default-img-placeholder {
2424
height: var(--spacing-px-12);
2525
width: var(--spacing-px-12);
26+
object-fit: contain;
2627
}
2728
}
2829

@@ -35,6 +36,7 @@
3536
.default-img-placeholder {
3637
height: var(--spacing-px-12);
3738
width: var(--spacing-px-12);
39+
object-fit: contain;
3840
}
3941
}
4042

@@ -47,6 +49,7 @@
4749
.default-img-placeholder {
4850
height: var(--spacing-px-18);
4951
width: var(--spacing-px-18);
52+
object-fit: contain;
5053
}
5154
}
5255

@@ -59,6 +62,7 @@
5962
.default-img-placeholder {
6063
height: var(--spacing-px-24);
6164
width: var(--spacing-px-24);
65+
object-fit: contain;
6266
}
6367
}
6468

Loading

0 commit comments

Comments
 (0)