-
Notifications
You must be signed in to change notification settings - Fork 23
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
SWC-7186: SRC EntityPageTitleBar updates on mobile #1503
base: main
Are you sure you want to change the base?
Conversation
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.
LGTM, had some minor questions/suggestions
sx={theme => ({ | ||
[theme.breakpoints.down('sm')]: { | ||
flexDirection: 'column', | ||
}, | ||
[theme.breakpoints.up('sm')]: { | ||
flexDirection: 'row', | ||
}, | ||
})} |
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.
Same but more concise
sx={theme => ({ | |
[theme.breakpoints.down('sm')]: { | |
flexDirection: 'column', | |
}, | |
[theme.breakpoints.up('sm')]: { | |
flexDirection: 'row', | |
}, | |
})} | |
sx={{ | |
flexDirection: { xs: 'column', sm: 'row' } | |
})} |
alignItems: 'center', | ||
gap: '10px', | ||
[theme.breakpoints.down('sm')]: { | ||
flexWrap: 'wrap', |
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.
Would it make more sense to change the flex-direction to column
here instead of making it wrap?
Jira ticket: https://sagebionetworks.jira.com/browse/SWC-7186?atlOrigin=eyJpIjoiZmRhODg4MjIyYmU3NGRhYjk1ODU5MTcxNDM1NTg2YmIiLCJwIjoiaiJ9