fix(public-embed): Fix header showing on embed view

Regression from https://github.com/nextcloud/calendar/pull/5184

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-05-22 17:10:14 +02:00
parent 03b30bc526
commit ff17233536
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
2 changed files with 13 additions and 6 deletions

View File

@ -70,13 +70,18 @@
}
}
#body-public .app-calendar-public {
& + footer {
// Only show bottom rounded corners
border-radius: 0 0 var(--border-radius-large) var(--border-radius-large);
#body-public {
input#initial-state-calendar-is_embed ~ header#header {
display: none;
}
.app-calendar-public {
& + footer {
// Only show bottom rounded corners
border-radius: 0 0 var(--border-radius-large) var(--border-radius-large);
}
.app-content {
height: calc(100% - 65px) !important; // $footer-height is hardcoded to 65px in core/css/public.scss
.app-content {
height: calc(100% - 65px) !important; // $footer-height is hardcoded to 65px in core/css/public.scss
}
}
}

View File

@ -104,6 +104,8 @@ class PublicViewController extends Controller {
$csp->addAllowedFrameAncestorDomain('*');
$response->setContentSecurityPolicy($csp);
$this->initialStateService->provideInitialState($this->appName, 'is_embed', true);
return $response;
}