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(theming): Make sure the footer is hidden if no content is rendered #40597

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Sep 23, 2023

Summary

Previously the footer was empty, but the backdrop was still shown.
This hides the footer if no text content was defined.

Screenshots

Before After
Screenshot 2023-09-23 at 14-26-25 Anmelden – Screenshot 2023-09-23 at 14-20-53 Anmelden –
Screenshot 2023-09-23 at 14-26-36 https __localhost 8443 Screenshot 2023-09-23 at 14-20-43 https __localhost 8443

Checklist

@susnux susnux added bug design Design, UI, UX, etc. 3. to review Waiting for reviews labels Sep 23, 2023
@susnux susnux requested review from st3iny, szaimen, a team, nfebe and Pytal and removed request for a team September 23, 2023 12:27
@@ -95,7 +95,7 @@
</h1>
<?php print_unescaped($_['content']); ?>
</main>
<?php if (isset($template) && $template->getFooterVisible()) { ?>
<?php if (isset($template) && $template->getFooterVisible() && ($theme->getLongFooter() !== '' || $_['showSimpleSignUpLink'])) { ?>

Check notice

Code scanning / Psalm

RedundantConditionGivenDocblockType Note

Docblock-defined type OCP\AppFramework\Http\Template\PublicTemplateResponse for $template is never null
@susnux susnux force-pushed the fix/public-footer-empty-not-shown branch from c6de3e1 to 8ef38ba Compare September 23, 2023 12:50
@susnux susnux added this to the Nextcloud 28 milestone Sep 23, 2023
@susnux
Copy link
Contributor Author

susnux commented Sep 23, 2023

/backport to stable27

Copy link
Member

@st3iny st3iny left a comment

Choose a reason for hiding this comment

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

Very nice! 😄

Tested and works.

The simple sign-up link is not shown anymore. However, this seems to be the case on master too.

@susnux
Copy link
Contributor Author

susnux commented Sep 23, 2023

The simple sign-up link is not shown anymore. However, this seems to be the case on master too.

Not touched that logic 😅

@skjnldsv skjnldsv mentioned this pull request Nov 1, 2023
@susnux susnux force-pushed the fix/public-footer-empty-not-shown branch from 8ef38ba to 0f0085d Compare November 1, 2023 12:35
@susnux susnux changed the title fix(theming): Make sure the footer is hidden if not content is rendered fix(theming): Make sure the footer is hidden if no content is rendered Nov 1, 2023
@susnux susnux requested review from skjnldsv and ShGKme November 1, 2023 12:37
Previously the footer was empty, but the backdrop was still shown.
This hides the footer if no text content was defined.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/public-footer-empty-not-shown branch from 0f0085d to f62032e Compare November 2, 2023 13:57
@susnux susnux enabled auto-merge November 2, 2023 13:58
@susnux susnux disabled auto-merge November 2, 2023 14:38
@susnux susnux enabled auto-merge November 2, 2023 14:38
@susnux susnux disabled auto-merge November 2, 2023 16:49
@susnux susnux merged commit 321ac31 into master Nov 2, 2023
49 checks passed
@susnux susnux deleted the fix/public-footer-empty-not-shown branch November 2, 2023 16:49
@blizzz blizzz mentioned this pull request Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews backport-request bug design Design, UI, UX, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Login Page footer shows black bar if empty
3 participants