mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
Only render analytics in non-dev. Also revert game css for now.
This commit is contained in:
parent
d2762b3e38
commit
226c9454c7
2 changed files with 8 additions and 6 deletions
|
|
@ -83,10 +83,8 @@
|
|||
}
|
||||
|
||||
.game-container {
|
||||
display: grid;
|
||||
grid-template-rows: repeat(3, minmax(50px, 200px));
|
||||
place-items: center;
|
||||
max-width: 100px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
@media (max-width: 650px) {
|
||||
max-width: none;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
import { fade } from 'svelte/transition';
|
||||
import debounce from 'just-debounce-it';
|
||||
import { Toy } from '@leveluptuts/svelte-toy';
|
||||
import Analytics from '$lib/components/analytics.svelte';
|
||||
import Analytics from '$lib/components/analytics.svelte';
|
||||
import Header from '$lib/components/header/Header.svelte';
|
||||
import Loading from '$lib/components/loading.svelte';
|
||||
import Transition from '$lib/components/transition/index.svelte';
|
||||
|
|
@ -45,10 +45,14 @@
|
|||
const dev = process.env.NODE_ENV !== 'production';
|
||||
</script>
|
||||
|
||||
<Analytics />
|
||||
{#if !dev}
|
||||
<Analytics />
|
||||
{/if}
|
||||
|
||||
{#if dev}
|
||||
<Toy register={{ boredState, collectionStore, gameStore, toast }} />
|
||||
{/if}
|
||||
|
||||
<Transition transition={{ type: 'fade', duration: 250 }}>
|
||||
<div class="wrapper">
|
||||
<Header />
|
||||
|
|
|
|||
Loading…
Reference in a new issue