-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Core Branding] Fix Compose Bar Text Alignment #13645
Changes from 13 commits
17fa2ba
64b03da
0f4d0cc
6fa4d92
9a84771
103f632
a288943
0db6611
00c6ba0
d88a71d
c3a9534
d93697b
4cb7201
32a682c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -350,6 +350,10 @@ const styles = { | |
paddingLeft: 0, | ||
}, | ||
|
||
pl6: { | ||
paddingLeft: 6, | ||
}, | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't really need these if we follow my suggestion above, also since the paddingLeft styles aren't being used anywhere else. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, using those naming conventions |
||
textDanger: { | ||
color: themeColors.danger, | ||
}, | ||
|
@@ -691,11 +695,11 @@ const styles = { | |
}, | ||
|
||
chatItemComposeSecondaryRowOffset: { | ||
marginLeft: 48, | ||
marginLeft: variables.chatInputSpacing, | ||
}, | ||
|
||
offlineIndicator: { | ||
marginLeft: 48, | ||
marginLeft: variables.chatInputSpacing, | ||
}, | ||
|
||
offlineIndicatorMobile: { | ||
|
@@ -710,6 +714,7 @@ const styles = { | |
// Actions | ||
actionAvatar: { | ||
borderRadius: 20, | ||
marginRight: 6, | ||
}, | ||
|
||
componentHeightLarge: { | ||
|
@@ -1306,7 +1311,7 @@ const styles = { | |
flexShrink: 1, | ||
flexBasis: 0, | ||
position: 'relative', | ||
marginLeft: 48, | ||
marginLeft: variables.chatInputSpacing, | ||
}, | ||
|
||
chatItemRight: { | ||
|
@@ -1451,7 +1456,7 @@ const styles = { | |
backgroundColor: themeColors.transparent, | ||
height: 32, | ||
padding: 6, | ||
margin: 4, | ||
margin: 3, | ||
justifyContent: 'center', | ||
}, | ||
|
||
|
@@ -1525,8 +1530,7 @@ const styles = { | |
alignSelf: 'flex-end', | ||
borderRadius: variables.buttonBorderRadius, | ||
height: 32, | ||
marginVertical: 4, | ||
marginLeft: 3, | ||
marginVertical: 3, | ||
paddingHorizontal: 6, | ||
justifyContent: 'center', | ||
}, | ||
|
@@ -1540,24 +1544,31 @@ const styles = { | |
}, | ||
|
||
chatItemAttachButton: { | ||
alignItems: 'center', | ||
alignSelf: 'flex-end', | ||
borderRightColor: themeColors.border, | ||
borderRightWidth: 1, | ||
borderRadius: variables.componentBorderRadiusRounded, | ||
backgroundColor: themeColors.transparent, | ||
height: 32, | ||
width: 32, | ||
marginBottom: 4, | ||
marginTop: 4, | ||
marginLeft: 4, | ||
padding: 6, | ||
marginLeft: 3, | ||
marginRight: 3, | ||
justifyContent: 'center', | ||
}, | ||
|
||
chatItemAttachBorder: { | ||
borderRightColor: themeColors.border, | ||
borderRightWidth: 1, | ||
marginBottom: 3, | ||
marginTop: 3, | ||
|
||
}, | ||
|
||
composerSizeButton: { | ||
alignItems: 'center', | ||
alignSelf: 'flex-end', | ||
height: 26, | ||
marginBottom: 6, | ||
marginTop: 6, | ||
marginRight: 4, | ||
justifyContent: 'center', | ||
width: 32, | ||
}, | ||
|
@@ -1739,13 +1750,13 @@ const styles = { | |
}, | ||
|
||
emptyAvatar: { | ||
marginRight: variables.componentSizeNormal - 24, | ||
marginRight: variables.componentSizeNormal - 26, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any chance we could add a comment explaining where 26 is coming from? |
||
height: variables.avatarSizeNormal, | ||
width: variables.avatarSizeNormal, | ||
}, | ||
|
||
emptyAvatarSmall: { | ||
marginRight: variables.componentSizeNormal - 28, | ||
marginRight: variables.componentSizeNormal - 30, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same, where is 30 coming from? |
||
height: variables.avatarSizeSmall, | ||
width: variables.avatarSizeSmall, | ||
}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add the
paddingLeft
styles directly totextInputComposeSpacing
.