Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,21 @@
}

/* Base styles */
html,
body {
min-height: 100vh;
height: 100%;
margin: 0;
padding: 0;
overflow-x: hidden;
background-color: var(--color-primary);
color: var(--color-text);
overscroll-behavior: none;
}

#app {
min-height: 100%;
display: flex;
flex-direction: column;
}

#svelte {
Expand Down
4 changes: 2 additions & 2 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
%sveltekit.head%
</head>
<body>
<div>%sveltekit.body%</div>
<div id="app">%sveltekit.body%</div>
</body>
</html>
1 change: 1 addition & 0 deletions src/lib/components/Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ footer {
left: 0;
right: 0;
width: 100%;
margin-top: auto;
}
</style>
6 changes: 5 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ onMount(() => {
});
</script>

<div class="flex min-h-screen flex-col">
<div class="flex min-h-screen flex-col overflow-hidden">
<Header />

<main
Expand All @@ -38,11 +38,15 @@ onMount(() => {

<style>
/* Global styles that can't be handled with Tailwind directly */
:global(html),
:global(body) {
overflow-x: hidden;
max-width: 100vw;
margin: 0;
padding: 0;
overscroll-behavior-y: none;
position: relative;
height: 100%;
}

:global(.container) {
Expand Down
Loading