Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32161284
D3997.1765043249.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
675 B
Referenced Files
None
Subscribers
None
D3997.1765043249.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
Sat, Dec 6, 5:47 PM (21 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5839823
Default Alt Text
D3997.1765043249.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