diff --git a/src/lib/components/game/index.svelte b/src/lib/components/game/index.svelte
index 48927b9..cae2db9 100644
--- a/src/lib/components/game/index.svelte
+++ b/src/lib/components/game/index.svelte
@@ -1,13 +1,14 @@
@@ -29,12 +30,12 @@
{/if}
{#if existsInCollection}
- removeFromCollection(game)}
+ >Remove
{:else}
- addToCollection(game)}
+ >Add to collection
{/if}
@@ -49,12 +50,20 @@
}
button {
+ display: flex;
+ justify-content: space-between;
+ gap: 1rem;
width: 100%;
border-radius: 10px;
padding: 1rem;
background-color: var(--color-btn-primary-active);
}
+ /* :global(.icon) {
+ width: 24px;
+ height: 24px;
+ } */
+
.game-container {
display: flex;
flex-wrap: wrap;
diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte
index c4b7067..166bc51 100644
--- a/src/routes/__layout.svelte
+++ b/src/routes/__layout.svelte
@@ -22,7 +22,7 @@
collectionEmpty &&
localStorage &&
localStorage.collection &&
- localStorage.collection !== 0
+ localStorage.collection.length !== 0
) {
const collection = JSON.parse(localStorage.collection);
console.log('collection', collection);
diff --git a/src/styles/global.scss b/src/styles/global.scss
index cdf62da..3cc2456 100644
--- a/src/styles/global.scss
+++ b/src/styles/global.scss
@@ -271,4 +271,9 @@ ol {
padding: var(--spacing-20) 0;
background-color: var(--color-placeholder);
border-radius: var(--radius-base);
+}
+
+.icon {
+ width: 24px;
+ height: 24px;
}
\ No newline at end of file