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

836 map setting menu left drawer #875

Merged
merged 11 commits into from
Jan 7, 2021
Merged

Conversation

Tanvez
Copy link
Contributor

@Tanvez Tanvez commented Dec 17, 2020

Fixes #836

  • Up to date with dev branch
  • Branch name follows guidelines
  • All PR Status checks are successful
  • Peer reviewed and approved

Any questions? See the getting started guide
mobilemap

Note: The web drawer looks different than the one pictured. I based it off the mobile screen

@Tanvez Tanvez requested a review from adamkendis December 17, 2020 22:38
display: 'flex',
},
appBar: {
transition: theme.transitions.create(['margin', 'width'], {
Copy link
Member

Choose a reason for hiding this comment

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

awesome, haven't used this before

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, I dont think this is being used anywhere! Got it from the material component.
Will remove.

};

const escFunction = e => {
e.preventDefault();
Copy link
Member

Choose a reason for hiding this comment

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

it looks like this is preventing the chrome devtools keyboard shortcut from working. a couple options that fixed it, hopefully without causing any side effects:

  1. move e.preventDefault inside the if block
  2. change the eventListener to 'keypress' instead of 'keydown'

keypress fires after keydown, so maybe that's somehow messing up the shortcut?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will look into it

Copy link
Member

@adamkendis adamkendis left a comment

Choose a reason for hiding this comment

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

This looks really great! I left a comment re the keydown problem. After this is merged in, I'll merge it into my layout branch and shift things around so it's not directly in the App component.

Good stuff!

@Tanvez Tanvez requested a review from adamkendis December 21, 2020 06:07
Copy link
Member

@adamkendis adamkendis left a comment

Choose a reason for hiding this comment

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

looks good!

@adamkendis adamkendis merged commit 189789c into dev Jan 7, 2021
@adamkendis adamkendis deleted the 836-map-setting-menu-left-drawer branch January 7, 2021 18:37
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.

Map settings menu - left drawer (mobile/desktop)
2 participants