Merge pull request 'Use dvh for menu and iframe heights' (#22) from i18 into main

Reviewed-on: https://codeberg.org/macchiato/pages/pulls/22
file-group-page
bat 3 years ago
commit 423938d88c

@ -13,7 +13,7 @@ export class NavMenu extends HTMLElement {
display: flex;
flex-direction: column;
color: #000;
max-height: 100vh;
max-height: 100dvh;
}
h1 {
width: 100%;
@ -25,6 +25,7 @@ export class NavMenu extends HTMLElement {
.page-list {
flex-grow: 1;
overflow-y: auto;
padding-bottom: 50px;
}
a {
display: block;

@ -71,7 +71,7 @@ export class Page extends HTMLElement {
iframe {
border: none;
width: 100%;
height: 90vh;
height: 90dvh;
}
:host(.editing) iframe {
display: none;
@ -135,7 +135,7 @@ export class Page extends HTMLElement {
get body() {
try {
return localStorage.getItem(this.path) ?? ''
return localStorage.getItem(this.path)
} catch (err) {
console.error(err)
return ''

@ -9,7 +9,7 @@ async function initCache() {
'/components/header.js',
'/components/nav-menu.js',
'/components/page-menu.js',
]) //6
]) //7
}
self.addEventListener("install", event => {

Loading…
Cancel
Save