Use dvh for menu and iframe heights

file-group-page
bat 3 years ago
parent b0f52910e5
commit f1b40b76d6

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

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

Loading…
Cancel
Save