diff --git a/src/app.scss b/src/app.scss index eed7ccd..f78eb5d 100644 --- a/src/app.scss +++ b/src/app.scss @@ -105,4 +105,17 @@ button { pointer-events: none; opacity: 0.5; } +} + +h1, +h2, +h3, +h4, +h5, +h6, +p, +span, +button, +img { + user-select: none; } \ No newline at end of file diff --git a/src/routes/create/+page.svelte b/src/routes/create/+page.svelte index c44cc39..4cebfb5 100644 --- a/src/routes/create/+page.svelte +++ b/src/routes/create/+page.svelte @@ -139,15 +139,19 @@ type = `custom-${customCard.name}`.toLocaleUpperCase(); - goToCreate(); + goToCreate(false); }; - const goToCreate = () => { + const goToCreate = (resetChoice = true) => { customCard = { name: 'My Custom Deck', cards: [] }; + if (resetChoice) { + type = 'TSHIRT'; + } + status = 'create'; };