Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3708747
D7639.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
654 B
Referenced Files
None
Subscribers
None
D7639.diff
View Options
diff --git a/web/components/avatar.css b/web/components/avatar.css
--- a/web/components/avatar.css
+++ b/web/components/avatar.css
@@ -55,3 +55,7 @@
width: 112px;
min-width: 112px;
}
+
+.imgContainer {
+ object-fit: cover;
+}
diff --git a/web/components/avatar.react.js b/web/components/avatar.react.js
--- a/web/components/avatar.react.js
+++ b/web/components/avatar.react.js
@@ -17,6 +17,7 @@
const { avatarInfo, size } = props;
const containerSizeClassName = classnames({
+ [css.imgContainer]: avatarInfo.type === 'image',
[css.micro]: size === 'micro',
[css.small]: size === 'small',
[css.large]: size === 'large',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 9, 3:19 AM (6 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2826514
Default Alt Text
D7639.diff (654 B)
Attached To
Mode
D7639: [web] fix image avatar image being stretched
Attached
Detach File
Event Timeline
Log In to Comment