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.
Couple small things, but this is working well.
src/app/src/util/util.js
Outdated
left:0;width:100%;height:100%;" | ||
title="embedded-map"></iframe> | ||
</div> | ||
</div>` |
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.
Consider changing the indentation over so that this block lines up with the block below.
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.
Good call, thanks
const DEFAULT_WIDTH = '1000'; | ||
const DEFAULT_HEIGHT = '800'; | ||
export const DEFAULT_WIDTH = '1000'; | ||
export const DEFAULT_HEIGHT = '800'; |
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.
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.
@caseycesari My thought here is that, since users will have direct visual feedback that it looks terrible if they set it at a small size, we can let them self-police their sizing.
Adjusts the embedded map preview and sample code to allow users to set the embedded map to full width, and implements sensible defaults when moving between full width and set width. Per a conversation with Scott, some small changes have been made to the styling of the size section of the embedded map settings. As part of updating the iframe code, also fixes a type in the iframe src url.
97ec214
to
90a39f3
Compare
Thanks for the review! |
Overview
Adjusts the embedded map preview and sample code to allow users
to set the embedded map to full width, and implements sensible
defaults when moving between full width and set width.
Per a conversation with Scott, some small changes have been made to the
styling of the size section of the embedded map settings.
The width and height text inputs were not allowing users to completely clear them, which made it difficult to enter an entirely new size. There is now a validation message presented in response to empty text inputs instead.
Connects #1311
Testing Instructions
./scripts/server
Checklist
fixup!
commits have been squashed