mirror of
https://github.com/nextcloud/spreed.git
synced 2025-07-21 10:37:10 +00:00

The iframe of the PDF viewer is shown with an absolute position and full width and height, so it takes the size of the first parent with a relative or fixed position. That parent was the main content element, which is also a parent of the sidebar and therefore its size includes it, so the iframe filled the content and extended behind the sidebar. To solve that now a relative position is set for #app-content, which is a sibling of the sidebar and therefore prevents the iframe from overlapping it. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>