Skip to content

feat: add overview image render layer (MIN-178)

Adrian Orłów requested to merge MIN-178-modal-render-overview-image into development

Closes MIN-178

Objective:

Make it possible to render overview image in modal

What's done:

  • rendering image inside modal with logic that provides fitting to container image size
  • handling defining default and storing current image id
  • unit tests

Important:

Why the image is using fitting logic? That's because in the next step we'll need to render interactive elements above the image in predefined places (clickable buttons, submap links etc.). It would not be possible to render them in correct places if we've used img with object-fit class for eg. because object-fit changes only apperance of image and not it's real size. Also, using aspect ratio would not be ideal as it's not supported by all browers

Why there are so much changes? This PR is based on !73 (merged) - it's changes may appear here if it's not merged yet

Merge request reports