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

[stable24] Fix footer not hidden when Talk sidebar is shown #616

Conversation

danxuliu
Copy link
Member

(Kind of) Backport of #615

The style.css file was no longer loaded since the PDF viewer was
adjusted to use the standard viewer app, so it can be removed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
When the Talk sidebar is shown the footer in public pages is moved into
the "#app-content" element, so this needs to be taken into account when
hiding the footer element.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The main content minimum height is set in server styles to the full
height minus the footer height. The PDF viewer hides the footer, so the
minimum height was increased to the full height to ensure that the main
content took all the available space.

However, when the Talk sidebar is shown, the page layout is also
adjusted, including the CSS styles. As the minimum height was set on the
element itself it took priority over the changes done by Talk, and
caused the PDF viewer to end past the window bottom when the Talk
sidebar is shown.

No matter if the Talk sidebar is shown or not the main content height
just needs to fill the available space, so now this is done using
flexbox. This avoids having to set an explicit height and thus works for
both the standard layout and the Talk sidebar layout. Moreover, even if
an explicit height is set somewhere, like in the server or Talk styles,
the flex-grow property implicitly overrides it and ensures that the main
content will fill the available height.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@skjnldsv skjnldsv merged commit 397f5bd into stable24 Jun 28, 2022
@skjnldsv skjnldsv deleted the backport/615/stable24-fix-footer-not-hidden-when-talk-sidebar-is-shown branch June 28, 2022 08:12
@skjnldsv skjnldsv mentioned this pull request Jul 5, 2022
18 tasks
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.

2 participants