Merge pull request 'Fix scrolling in layout' (#41) from fix-scrolling into main

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

@ -13,9 +13,9 @@ export class Layout extends HTMLElement {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: stretch; align-items: stretch;
height: 100vh; height: 100svh;
min-height: 100vh; min-height: 100svh;
max-height: 100vh; max-height: 100svh;
overflow-y: hidden; overflow-y: hidden;
position: relative; position: relative;
} }

@ -3,16 +3,22 @@ const frameHtml = `<!doctype html>
<head> <head>
<title>Frame</title> <title>Frame</title>
<style> <style>
html, body, iframe { html, body, iframe {
margin: 0; margin: 0;
padding: 0; padding: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
iframe { iframe {
border: none; border: none;
display: block; display: block;
} }
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
</style> </style>
</head> </head>
<body> <body>
@ -67,7 +73,7 @@ export class Page extends HTMLElement {
align-items: stretch; align-items: stretch;
} }
div.twrap { div.twrap {
padding: 5px 10px; padding: 10px 10px;
display: flex; display: flex;
align-items: stretch; align-items: stretch;
flex-direction: column; flex-direction: column;

Loading…
Cancel
Save