Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3354136
D3997.id12535.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
675 B
Referenced Files
None
Subscribers
None
D3997.id12535.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
@@ -73,9 +73,15 @@
const alignStyle = isViewer
? styles.rightChatBubble
: styles.leftChatBubble;
+
+ let containerMarginBottom = 5;
+ if (item.endsCluster) {
+ containerMarginBottom += clusterEndHeight;
+ }
+
const containerStyle = [
styles.alignment,
- { marginBottom: 5 + (item.endsCluster ? clusterEndHeight : 0) },
+ { marginBottom: containerMarginBottom },
];
const messageBoxStyle = { maxWidth: composedMessageMaxWidth };
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 11:59 AM (21 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2575487
Default Alt Text
D3997.id12535.diff (675 B)
Attached To
Mode
D3997: [native] [refactor] [ENG-530] refactor container margin bottom if statement
Attached
Detach File
Event Timeline
Log In to Comment