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

#2043 thumbnail images are not readable in template dialog #2063

Conversation

porcelain11
Copy link
Collaborator

@porcelain11 porcelain11 commented Jan 6, 2023

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 )

@porcelain11 porcelain11 linked an issue Jan 6, 2023 that may be closed by this pull request
) - 0
: Number(
((value * measureMap[measureFrom]) / measureMap[measureTo]).toFixed(3)
) - 0
Copy link
Collaborator

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?

Copy link
Collaborator Author

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,
Copy link
Collaborator

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@KonstantinEpam23
Copy link
Collaborator

@porcelain11 I went in a slightly different direction with this: #2098
perhaps we will close this PR (@porcelain11 lets discuss when you are available)

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.

Thumbnail images are not readable in Template Dialog
2 participants