Skip to content

Commit 04c64fa

Browse files
authored
Merge pull request #54138 from nextcloud/feat/core/pwa-hide-header
2 parents e9ce184 + 4c7e85e commit 04c64fa

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

core/css/header.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/header.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/header.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,3 +267,18 @@ header .emptycontent {
267267
width: 48px;
268268
}
269269
}
270+
271+
@media (display-mode: standalone) or (display-mode: minimal-ui) {
272+
#header {
273+
display: none !important;
274+
}
275+
276+
#content, #content-vue {
277+
margin-top: var(--body-container-margin);
278+
}
279+
280+
:root {
281+
// Override the body height to make up for the additional height due to the missing header.
282+
--body-height: calc(100% - env(safe-area-inset-bottom) - var(--body-container-margin) * 2) !important;
283+
}
284+
}

0 commit comments

Comments
 (0)