Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3360651
D7696.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
D7696.diff
View Options
diff --git a/native/chat/composed-message.react.js b/native/chat/composed-message.react.js
--- a/native/chat/composed-message.react.js
+++ b/native/chat/composed-message.react.js
@@ -99,11 +99,11 @@
{ maxWidth: composedMessageMaxWidth },
];
- const messageBoxStyleContainerStyle = [styles.messageBoxContainer];
+ const messageBoxContainerStyle = [styles.messageBoxContainer];
const positioningStyle = isViewer
- ? { alignItems: 'flex-end' }
- : { alignItems: 'flex-start' };
- messageBoxStyleContainerStyle.push(positioningStyle);
+ ? styles.rightChatContainer
+ : styles.leftChatContainer;
+ messageBoxContainerStyle.push(positioningStyle);
let deliveryIcon = null;
let failedSendInfo = null;
@@ -152,7 +152,7 @@
}
const messageBox = (
- <View style={messageBoxStyleContainerStyle}>
+ <View style={messageBoxContainerStyle}>
<SwipeableMessage
triggerReply={triggerReply}
triggerSidebar={triggerSidebar}
@@ -243,6 +243,9 @@
leftChatBubble: {
justifyContent: 'flex-end',
},
+ leftChatContainer: {
+ alignItems: 'flex-start',
+ },
messageBoxContainer: {
flex: 1,
marginRight: 5,
@@ -250,6 +253,9 @@
rightChatBubble: {
justifyContent: 'flex-start',
},
+ rightChatContainer: {
+ alignItems: 'flex-end',
+ },
swipeableContainer: {
alignItems: 'flex-end',
flexDirection: 'row',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 1:46 PM (19 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2577005
Default Alt Text
D7696.diff (1 KB)
Attached To
Mode
D7696: [native] Clean up ComposedMessage
Attached
Detach File
Event Timeline
Log In to Comment