Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3521940
D7196.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7196.diff
View Options
diff --git a/web/modals/chat/message-reactions-modal.css b/web/modals/chat/message-reactions-modal.css
--- a/web/modals/chat/message-reactions-modal.css
+++ b/web/modals/chat/message-reactions-modal.css
@@ -14,3 +14,13 @@
flex-direction: row;
justify-content: space-between;
}
+
+div.userInfoContainer {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+}
+
+div.username {
+ margin-left: 8px;
+}
diff --git a/web/modals/chat/message-reactions-modal.react.js b/web/modals/chat/message-reactions-modal.react.js
--- a/web/modals/chat/message-reactions-modal.react.js
+++ b/web/modals/chat/message-reactions-modal.react.js
@@ -6,6 +6,7 @@
import { useMessageReactionsList } from 'lib/shared/reaction-utils.js';
import css from './message-reactions-modal.css';
+import UserAvatar from '../../components/user-avatar.react.js';
import Modal from '../modal.react.js';
type Props = {
@@ -22,7 +23,10 @@
() =>
messageReactionsList.map(messageReactionUser => (
<div key={messageReactionUser.id} className={css.userRowContainer}>
- <div>{messageReactionUser.username}</div>
+ <div className={css.userInfoContainer}>
+ <UserAvatar size="small" userID={messageReactionUser.id} />
+ <div className={css.username}>{messageReactionUser.username}</div>
+ </div>
<div>{messageReactionUser.reaction}</div>
</div>
)),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 5:21 AM (20 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2698455
Default Alt Text
D7196.diff (1 KB)
Attached To
Mode
D7196: [web] render user avatars in message reactions modal
Attached
Detach File
Event Timeline
Log In to Comment