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

feat: improve consistency between Tree Detail and Planter Detail dialogs #10 #143

Merged
merged 2 commits into from
Aug 14, 2021

Conversation

chromium-52
Copy link
Contributor

Resolves #10

Copy link
Collaborator

@nmcharlton nmcharlton left a comment

Choose a reason for hiding this comment

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

Fantastic work! Just a couple of comments on the changes.

Some other suggestions for adjacent changes:

  • I think we can get rid of the slide up transition – it looks a little odd when placed next to the sliding drawer.
  • Can we also not clear the capture on handleClose in Verify.js? That will give a smooth when closing the dialog.

</Box>
</Grid>
<Grid item>
<IconButton onClick={() => props.onClose()}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Clicking the Close button throws an exception:

Uncaught TypeError: props.onClose is not a function

>
<OptimizedImage
src={renderCapture.imageUrl}
width={320}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we can make the capture image bigger now there's a bit more room for it.
We have three options, any of which would work well:

  1. Dynamically calculate what size of image would fit in the space and request that using the OptimizedImage component
  2. Drop OptimizedImage for the full-size image and just shrink the original image to fill the space
  3. Set the OptimizedImage width to 600

@chromium-52
Copy link
Contributor Author

Thank you so much for the comments! I've made the above changes; please let me know if I misunderstood anything or if I can improve further!

Copy link
Collaborator

@nmcharlton nmcharlton left a comment

Choose a reason for hiding this comment

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

This is awesome! Great work @chromium-52

@nmcharlton nmcharlton merged commit 7197969 into Greenstand:master Aug 14, 2021
@chromium-52 chromium-52 deleted the fix-10 branch August 14, 2021 21:28
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.

Improve consistency between Tree Detail and Planter Detail dialogs
2 participants