Skip to content

Commit

Permalink
Merge pull request #882 from nextcloud/bugfix/noid/14-public
Browse files Browse the repository at this point in the history
Fix public layout rendering on Nextcloud 14
  • Loading branch information
georgehrke committed Aug 15, 2018
2 parents 8a55de8 + 5d45324 commit 45aa98c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion controller/viewcontroller.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function publicIndexForEmbedding($token) {
$params = array_merge($templateParameters, $publicTemplateParameters);
$params['isEmbedded'] = true;

$response = new TemplateResponse('calendar', 'main', $params, 'public');
$response = new TemplateResponse('calendar', 'main', $params, 'base');

$response->addHeader('X-Frame-Options', 'ALLOW');
$csp = new ContentSecurityPolicy();
Expand Down
7 changes: 7 additions & 0 deletions templates/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
?>
<?php if($_['isPublic'] && !$_['isEmbedded']): ?>
<style>
#body-public.layout-base #content {
padding-top: 50px;
}
@media only screen and (max-width: 768px) {
#app-navigation, #app-content {
top: 45px !important;
Expand All @@ -65,6 +68,10 @@

<?php if($_['isEmbedded']): ?>
<style>
#body-public.layout-base #app-navigation {
top: 0;
height: 100%;
}
@media only screen and (max-width: 768px) {
#app-navigation-toggle {
top: 0 !important;
Expand Down

0 comments on commit 45aa98c

Please sign in to comment.