Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

micro:bit Image #184

Merged
merged 5 commits into from
Feb 4, 2020
Merged

micro:bit Image #184

merged 5 commits into from
Feb 4, 2020

Conversation

xnkevinnguyen
Copy link
Contributor

Description:

This pr is dependant of this pr #183
The microbit image is rendered under the micro:bit tab.

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Limitations:

Please describe limitations of this PR

Testing:

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist:

  • My code follows the style guidelines of this project
  • My code has been formatted with npm run format and passes the checks in npm run check
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

Copy link

@nasadigital nasadigital left a comment

Choose a reason for hiding this comment

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

LGTM!
I'd have @sagarmanchanda take a look before merging, though.

setupKeyPresses(props.onKeyEvent);
setupSwitch(props);
firstTime = false;
//

Choose a reason for hiding this comment

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

Perhaps remove this or add a comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks david, i'll remove this

margin-left: auto;
margin-right: auto;
.microbit-container {
max-width: 350px;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this not also 100% as cpx?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is already some max sizing in the default cpx styling, but not on micro-bit

@xnkevinnguyen xnkevinnguyen merged commit cdb042f into dev Feb 4, 2020
@xnkevinnguyen xnkevinnguyen deleted the users/t-xunguy/microbit-image branch February 12, 2020 16:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants