epam / ketcher

Web-based molecule sketcher
https://lifescience.opensource.epam.com/ketcher/demo.html
Apache License 2.0
443 stars 159 forks source link

Macro: Limit size of structures in preview #4212

Open Zhirnoff opened 4 months ago

Zhirnoff commented 4 months ago

Steps to Reproduce Case 1

  1. Add some molecules and structures on canvas in micro mode ( e.g. Benzene ring, molecules )
  2. Switch to Macro mode and hover over abbreviations

Case 2

  1. Switch to Sequence mode
  2. Add Peptides
  3. Hover over Peptide letter

Actual behavior 1) The benzene ring is scaled to preview window and displayed with thick bonds. Molecules are also displayed with a larger scale. 2) Peptides are displayed with a larger scale. 2024-03-07_22h19_37 2024-03-08_10h58_47 2024-03-08_10h58_56 2024-03-29_17h46_32

Expected behavior Limit sizes in preview Scale is no larger than on the canvas with zoom 100% image image

Desktop (please complete the following information):

Ketcher version [Version 2.19.0-rc.1]

Zhirnoff commented 4 months ago

Test added to the automation table.

AlexeyGirin commented 3 months ago

Moved to Refined Backlog since no fix over 2 versions

AlexeyGirin commented 1 month ago

After discussion with @vanoprenko we decided to got this issue fixed. Added to scope of 2.23 and changed priority to High