Page MenuHomePhabricator

D7196.diff
No OneTemporary

D7196.diff

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

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)

Event Timeline