Skip to content

fix pdfviewer on public pages - #655

Merged
szaimen merged 1 commit into
masterfrom
enh/noid/fix-public-pages
Sep 8, 2022
Merged

fix pdfviewer on public pages#655
szaimen merged 1 commit into
masterfrom
enh/noid/fix-public-pages

Conversation

@szaimen

@szaimen szaimen commented Sep 7, 2022

Copy link
Copy Markdown
Collaborator

Close nextcloud/server#33871

Before After
image image

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

@szaimen
szaimen requested review from a team, PVince81, Pytal, artonge and jancborchardt 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

szaimen commented Sep 7, 2022

Copy link
Copy Markdown
Collaborator Author

/compile amend /

@danxuliu danxuliu left a comment

Copy link
Copy Markdown
Member

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

szaimen commented Sep 8, 2022

Copy link
Copy Markdown
Collaborator Author

/compile amend /

@szaimen

szaimen commented Sep 8, 2022

Copy link
Copy Markdown
Collaborator Author

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