-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Updated LHN layout in GSD Priority Mode #2015
Conversation
Thanks for the info @shawnborton. Matter of fact, I chose the same size as you mentioned. But still needs to adjust a few. Please review it when I take it out of the draft. Thanks. |
Sounds good, just ping me when it's ready :) |
Updated @shawnborton. |
Ah interesting. Well that is a strange way to implement that. In the very least, that red portion should be larger. |
@shawnborton Code looks ok. Are we still waiting on the change to make the red portion larger? I'll default to you for final approval and merge |
@parasharrajat let me know if you will be addressing the border issue mentioned above. |
Yes. I am working on it |
@shawnborton New border implementation.
|
Tested and this looks great! I know you didn't introduce this, but one thing I think we could benefit from is to remove the right padding from the wrapper that wraps the avatar + name + preview: That will give us a little bit of extra room for the message previews to show. Thoughts on that? |
Yeah I like that. Should I do this only for GSD mode layout? Now I see one issue as well. When we hover the row the background border on the multiple Avatars in not adopting the colour. I need to fix that as well. |
I think for both modes is okay. |
@shawnborton Updated and Fixed the issue as well. Now working well. BorderRadiusHover Style (Notice the Border around the second avatar when we hover) |
Cool, thanks for updating. I think you just need to update the screenshots in the original comment above too. |
Screenshots updated. @shawnborton I think it can be merged now. #2015 (comment) |
@ctkochan22 all you! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
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.
Spotted a few things I think we should clean up here.
@@ -107,20 +128,27 @@ const OptionRow = ({ | |||
<MultipleAvatars | |||
avatarImageURLs={option.icons} | |||
optionIsFocused={optionIsFocused} | |||
size={mode === 'compact' ? 'small' : 'default'} | |||
styles={hovered && !optionIsFocused && { | |||
secondAvatar: { |
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.
This should be in styles.js
not right in the JSX I think?
@@ -1,7 +1,7 @@ | |||
import React, {memo} from 'react'; | |||
import PropTypes from 'prop-types'; | |||
import {Image, Text, View} from 'react-native'; | |||
import styles from '../styles/styles'; | |||
import globalStyles from '../styles/styles'; |
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.
Not really into the globalStyles
convention. Can we just keep this as styles
and then if there are some more specific styles passed in as props give them a more descriptive name? Usually the prop styles have a specific purpose.
avatarImageURLs, optionIsFocused, size, styles, | ||
}) => { | ||
const avatarContainerStyles = [ | ||
size === 'small' ? globalStyles.emptyAvatarSmall : globalStyles.emptyAvatar, styles.emptyAvatar, |
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.
styles.emptyAvatar
should go on a new line to make this more readable
Please review @shawnborton.
Fixed Issues
Fixes #1914
Tests
GSD
from Profile preferences and observe the layout change on all platforms.Tested On
Screenshots
Web
Mobile Web
Desktop
Android