Merge pull request 'make hamburger menu width responsive (fix on desktop)' (#53) from hamburger-menu-width into main

Reviewed-on: https://codeberg.org/macchiato/pages/pulls/53
page-actions
bat 3 years ago
commit 331b85048b

@ -120,9 +120,9 @@ export class Header extends HTMLElement {
div.menu { div.menu {
position: fixed; position: fixed;
top: 0; top: 0;
left: -90vw; left: max(-90vw, -480px);
height: 100vh; height: 100vh;
width: 90vw; width: min(90vw, 480px);
background-color: #fff; background-color: #fff;
transition: left .25s ease-in-out; transition: left .25s ease-in-out;
} }

@ -33,7 +33,7 @@ async function cacheFirst(request) {
const csp = url.searchParams.get('csp') const csp = url.searchParams.get('csp')
return new Response(html, { return new Response(html, {
headers: { headers: {
'Content-Type': 'text/html', 'Content-Type': 'text/html; charset=utf-8',
'Content-Security-Policy': csp, 'Content-Security-Policy': csp,
} }
}) })

Loading…
Cancel
Save