Fixed responsive UI (I hope), added ability to scroll cards vertically, fixed cards offset on small screens, and other small changes
Some checks are pending
/ build (push) Waiting to run
/ deploy (push) Blocked by required conditions

This commit is contained in:
Gu://em_ 2026-03-18 11:02:38 +01:00
parent e9ae13e69c
commit 59df9a3017
3 changed files with 51 additions and 56 deletions

View file

@ -14,6 +14,7 @@ const { cards, website_title, website_logo } = data;
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<!-- DISABLED because it prevents the font from loading -->
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{website_title}</title>
</head>
@ -32,6 +33,22 @@ const { cards, website_title, website_logo } = data;
</div>
</header>
<script>
window.addEventListener(
"wheel",
function (e) {
if (e.deltaY !== 0) {
e.preventDefault();
window.scrollBy({
left: e.deltaY,
behavior: "auto",
});
}
},
{ passive: false },
);
</script>
<div class="card-container">
{
cards.map((card) => (