-
Notifications
You must be signed in to change notification settings - Fork 177
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
#2043 thumbnail images are not readable in template dialog #2063
#2043 thumbnail images are not readable in template dialog #2063
Conversation
…issue with ForwardedRef type
…-template-dialog
) - 0 | ||
: Number( | ||
((value * measureMap[measureFrom]) / measureMap[measureTo]).toFixed(3) | ||
) - 0 |
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.
Looks like these two lines only differ in that the second one uses "toFixed(3)" - maybe we could put this into a separate function? e.g. getFormatedValue
or something like that?
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.
Done
options={{ | ||
...options, | ||
autoScaleMargin: 15, | ||
fontsz: 55, |
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.
could we put these into constants, since it looks like these are re-used in several files?
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.
Done
…-template-dialog
…tion for MeasureInput formatted value
…inside Render update method
…-template-dialog
@porcelain11 I went in a slightly different direction with this: #2098 |
Change font size, bondThickness and doubleBondWidth separately for Salts&Salvents and rest templates (main changes are in the last but one commit )
Rename some files to .tsx and add types (tried to fix the issue with ForwardedRef type )