Adjust public share page to layout changes in Nextcloud 25

The content now has an explicit width and height set in the server style
that takes into account the margins, so it does not need to be
overriden.

The footer, on the other hand, now has a fixed position, but as the
element is moved into the #app-content when the Talk sidebar is loaded
it needs to be set as relative instead.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez
2022-09-07 04:10:41 +02:00
parent e2a4b63cbd
commit 97d9109122

View File

@ -14,7 +14,6 @@
position: static;
}
#content,
#content.full-height {
/* Always full height without header. */
height: calc(100% - 50px);
@ -33,10 +32,6 @@
min-height: 0;
padding-top: 0;
/* Does not change anything in normal mode, but ensures that the element
* will stretch to the full width in full screen mode. */
width: 100%;
/* Override margin used in server, as the header is part of the flex layout
* and thus the content does not need to be pushed down. */
margin-top: 0;
@ -57,6 +52,10 @@
flex-grow: 1;
}
#content footer {
position: relative;
}
#content footer p a {
/* The server sets an height to the footer of 65px, but its contents are
* slightly larger, which causes a scroll bar to be added to the content