Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

@kianamcc
Copy link
Collaborator Author

Adam's quick design:
image

The icons in the design above are grey but I kept mine as the default color as changing the icon color to grey.700 in ComplexMenu will cause that to apply to some other icons in the page if that's ok.

Copy link
Collaborator

@nickgros nickgros left a 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

Comment on lines +51 to +58
sx={theme => ({
[theme.breakpoints.down('sm')]: {
flexDirection: 'column',
},
[theme.breakpoints.up('sm')]: {
flexDirection: 'row',
},
})}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same but more concise

Suggested change
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',
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants