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 {
|
#body-public {
|
||||||
& + footer {
|
input#initial-state-calendar-is_embed ~ header#header {
|
||||||
// Only show bottom rounded corners
|
display: none;
|
||||||
border-radius: 0 0 var(--border-radius-large) var(--border-radius-large);
|
|
||||||
}
|
}
|
||||||
|
.app-calendar-public {
|
||||||
|
& + footer {
|
||||||
|
// Only show bottom rounded corners
|
||||||
|
border-radius: 0 0 var(--border-radius-large) var(--border-radius-large);
|
||||||
|
}
|
||||||
|
|
||||||
.app-content {
|
.app-content {
|
||||||
height: calc(100% - 65px) !important; // $footer-height is hardcoded to 65px in core/css/public.scss
|
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('*');
|
$csp->addAllowedFrameAncestorDomain('*');
|
||||||
$response->setContentSecurityPolicy($csp);
|
$response->setContentSecurityPolicy($csp);
|
||||||
|
|
||||||
|
$this->initialStateService->provideInitialState($this->appName, 'is_embed', true);
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue