hochschule-darmstadt/openartbrowser

Handle switch from desktop to mobile and the other way around on artwork page

Opened this issue · 0 comments

Reason (Why?)

Currently if you switch from desktop to mobile view (window resize) all eight images of the slide are still shown. Obviously the mobile-common-tags feature doesn't work correctly in this case, since it only makes sense if one image per slide is shown.
To fix this view you would have to reload the website to only display one image.

On the other hand if you switch from mobile to desktop view (happens rarely on mobile but maybe some people do this) since only one picture is displayed per slide on mobile the same applies to the desktop view. Again - only reload of the page renders the carousel-slides correctly again.

resize

Solution (What?)

  • One way could be to use events to catch the view change and handle the slides correctly

Acceptance criteria

  • Desktop to mobile view: only one image per slide
  • Mobile to desktop view: display eight images per slide