Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix pdfviewer on public pages #655

Merged
merged 1 commit into from
Sep 8, 2022
Merged

fix pdfviewer on public pages #655

merged 1 commit into from
Sep 8, 2022

Conversation

szaimen
Copy link
Collaborator

@szaimen szaimen commented Sep 7, 2022

Close nextcloud/server#33871

Before After
image image

Signed-off-by: szaimen szaimen@e.mail.de

@szaimen szaimen requested review from artonge, jancborchardt, a team, PVince81 and Pytal and removed request for a team September 7, 2022 08:59
@szaimen szaimen added this to the Nextcloud 25 milestone Sep 7, 2022
@szaimen szaimen marked this pull request as ready for review September 7, 2022 09:00
@szaimen
Copy link
Collaborator Author

szaimen commented Sep 7, 2022

/compile amend /

Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bottom of the PDF viewer overflows the window, because the minimum height of the content is set to 100%. However, with the new style it seems that the minimum height must take into account the height of the header, so it should be calc(100% - 50px) (or something similar) instead.

Besides that please note that this may need to be adjusted again once nextcloud/server#33803 is fixed.

@szaimen
Copy link
Collaborator Author

szaimen commented Sep 8, 2022

/compile amend /

@szaimen
Copy link
Collaborator Author

szaimen commented Sep 8, 2022

The bottom of the PDF viewer overflows the window, because the minimum height of the content is set to 100%. However, with the new style it seems that the minimum height must take into account the height of the header, so it should be calc(100% - 50px) (or something similar) instead.

done

Signed-off-by: szaimen <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@szaimen szaimen merged commit 33133f4 into master Sep 8, 2022
@szaimen szaimen deleted the enh/noid/fix-public-pages branch September 8, 2022 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pdfviewer is a bit cut-off on public view
3 participants