mirror of https://github.com/nextcloud/calendar
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:
parent
03b30bc526
commit
ff17233536
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -104,6 +104,8 @@ class PublicViewController extends Controller {
|
|||
$csp->addAllowedFrameAncestorDomain('*');
|
||||
$response->setContentSecurityPolicy($csp);
|
||||
|
||||
$this->initialStateService->provideInitialState($this->appName, 'is_embed', true);
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue