From 226c9454c7032aa0a3b249cee56e1541d3046648 Mon Sep 17 00:00:00 2001 From: Bradley Shellnut Date: Sat, 29 Oct 2022 17:18:17 -0500 Subject: [PATCH] Only render analytics in non-dev. Also revert game css for now. --- src/lib/components/game/index.svelte | 6 ++---- src/routes/+layout.svelte | 8 ++++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/lib/components/game/index.svelte b/src/lib/components/game/index.svelte index eee7908..8463a4a 100644 --- a/src/lib/components/game/index.svelte +++ b/src/lib/components/game/index.svelte @@ -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; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 46ec118..a56e4d4 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -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'; - +{#if !dev} + +{/if} + {#if dev} {/if} +