documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Aspect ratio distorted in overlay of tall images

Open garrison opened this issue 2 years ago • 2 comments

URL to the relevant documentation

https://docs.quantum-computing.ibm.com/api/qiskit/transpiler#optimization-stage

Please describe the UI problem.

If you click on a very tall image and it is shown in the overlay, the aspect ratio will be distorted. aspect-ratio-overlays

garrison avatar Oct 24 '23 14:10 garrison

Here are a few examples of other issues with some of the images.

  • [ ] https://docs.quantum.ibm.com/build/circuit-visualization#plot-histogram- In this page, halfway down (on Plot histogram), "count" is way bigger than necessary - all of those "count" images seem too big. Luciano suggested trying "figsize".
  • [ ] https://docs.quantum.ibm.com/build/unitary-synthesis, the example under re-synthesis is huge. Is there a way to control how big the image appears without modifying the image? That way, when someone clicks and expands it, it can get bigger without getting fuzzy.
  • [ ] Here's another example where the image is already too big for the page, but then gets bigger and less clear when you click it: https://docs.quantum.ibm.com/transpile/defaults-and-configuration-options
  • [ ] This image is in dark mode and gets stretched when you click it: https://docs.quantum.ibm.com/transpile/transpiler-stages

beckykd avatar Jan 10 '24 15:01 beckykd

TODOS:

  • find new images that represent this, maybe synthetic ones
  • play around with scroll bars, horizontal and vertical
  • sometimes make modal bigger

TBD if we want to preserve the aspect ratio by shrinking the image vs use scroll bars.

Eric-Arellano avatar Sep 06 '24 15:09 Eric-Arellano

We've since decided to remove the image modal, the change should go live today. You can see a larger version of the image by either zooming in with your browser, or by right-clicking and opening the image in a new tab.

frankharkins avatar Jan 14 '25 17:01 frankharkins