Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3253737
D9387.id31906.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D9387.id31906.diff
View Options
diff --git a/native/chat/settings/thread-settings-member.react.js b/native/chat/settings/thread-settings-member.react.js
--- a/native/chat/settings/thread-settings-member.react.js
+++ b/native/chat/settings/thread-settings-member.react.js
@@ -130,20 +130,18 @@
? null
: this.props.styles.topBorder;
const lastItem = this.props.lastListItem
- ? this.props.styles.lastInnerContainer
+ ? this.props.styles.lastContainer
: null;
return (
- <View style={this.props.styles.container}>
- <View style={[this.props.styles.innerContainer, firstItem, lastItem]}>
- <View style={this.props.styles.row}>
- <View style={this.props.styles.userInfoContainer}>
- <UserAvatar size="S" userID={this.props.memberInfo.id} />
- {usernameInfo}
- </View>
- {editButton}
+ <View style={[this.props.styles.container, firstItem, lastItem]}>
+ <View style={this.props.styles.row}>
+ <View style={this.props.styles.userInfoContainer}>
+ <UserAvatar size="S" userID={this.props.memberInfo.id} />
+ {usernameInfo}
</View>
- {roleInfo}
+ {editButton}
</View>
+ {roleInfo}
</View>
);
}
@@ -201,14 +199,11 @@
}
const unboundStyles = {
- anonymous: {
- color: 'panelForegroundTertiaryLabel',
- fontStyle: 'italic',
- },
container: {
backgroundColor: 'panelForeground',
flex: 1,
- paddingHorizontal: 12,
+ paddingHorizontal: 24,
+ paddingVertical: 8,
},
editButton: {
paddingLeft: 10,
@@ -217,12 +212,7 @@
borderColor: 'panelForegroundBorder',
borderTopWidth: 1,
},
- innerContainer: {
- flex: 1,
- paddingHorizontal: 12,
- paddingVertical: 8,
- },
- lastInnerContainer: {
+ lastContainer: {
paddingBottom: Platform.OS === 'ios' ? 12 : 10,
},
role: {
@@ -247,6 +237,10 @@
lineHeight: 20,
marginLeft: 8,
},
+ anonymous: {
+ color: 'panelForegroundTertiaryLabel',
+ fontStyle: 'italic',
+ },
};
const ConnectedThreadSettingsMember: React.ComponentType<BaseProps> =
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 7:19 PM (1 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2495675
Default Alt Text
D9387.id31906.diff (2 KB)
Attached To
Mode
D9387: [native] simplify ThreadSettingsMember jsx
Attached
Detach File
Event Timeline
Log In to Comment