@ -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;
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 ''