Improve layout for smaller devices

This commit is contained in:
2023-04-11 15:49:50 +02:00
parent e3c15be31c
commit 268128c2f4
3 changed files with 217 additions and 168 deletions

View File

@ -1,5 +1,5 @@
<script lang="ts">
import FooterComponent from '$lib/components/FooterComponent.svelte'
import FooterComponent from '$lib/components/FooterComponent.svelte';
import { SvelteToast } from '@zerodevx/svelte-toast';
const options = {
@ -7,6 +7,7 @@
classes: ['toast']
};
</script>
<slot />
<SvelteToast {options} />
<div class="footer">
@ -33,4 +34,9 @@
align-items: center;
gap: 10px;
}
</style>
@media only screen and (max-device-width: 620px) {
.footer {
width: calc(100% + 16px);
}
}
</style>