Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3394343
D9013.id30822.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
D9013.id30822.diff
View Options
diff --git a/native/components/user-profile.react.js b/native/components/user-profile.react.js
--- a/native/components/user-profile.react.js
+++ b/native/components/user-profile.react.js
@@ -9,6 +9,7 @@
import SWMansionIcon from './swmansion-icon.react.js';
import UserAvatar from '../avatars/user-avatar.react.js';
+import { SingleLine } from '../components/single-line.react.js';
import { useStyles } from '../themes/colors.js';
type Props = {
@@ -66,7 +67,9 @@
<View style={styles.userInfoContainer}>
<UserAvatar size="profile" userID={userInfo.id} />
<View style={styles.usernameContainer}>
- <Text style={styles.usernameText}>{userInfo.username}</Text>
+ <SingleLine style={styles.usernameText}>
+ {userInfo.username}
+ </SingleLine>
{copyUsernameButton}
</View>
</View>
@@ -86,7 +89,9 @@
flexDirection: 'row',
},
usernameContainer: {
+ flex: 1,
justifyContent: 'center',
+ alignItems: 'flex-start',
paddingLeft: 16,
},
usernameText: {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 1, 7:12 PM (4 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2605872
Default Alt Text
D9013.id30822.diff (1 KB)
Attached To
Mode
D9013: [native] clean up profile UI for users with long usernames
Attached
Detach File
Event Timeline
Log In to Comment