diff --git a/src/molecules/Photo.svelte b/src/molecules/Photo.svelte
index 4795181..b014625 100644
--- a/src/molecules/Photo.svelte
+++ b/src/molecules/Photo.svelte
@@ -21,6 +21,7 @@
const nameSplit = name.split(', ')
// Photo index
+ const odd = index % 2 === 1
const photoIndex = (index < 10 ? '0': '') + index
@@ -32,11 +33,11 @@
})
-
+
- {#each nameSplit as line, i}
+ {#each nameSplit as _, i}
{nameSplit[i]}{#if i < nameSplit.length - 1},{/if}
diff --git a/src/style/organisms/_photos.scss b/src/style/organisms/_photos.scss
index 4b5c85f..4465465 100644
--- a/src/style/organisms/_photos.scss
+++ b/src/style/organisms/_photos.scss
@@ -194,7 +194,7 @@
}
// Every second (on column 2)
- &:nth-child(2n+2) {
+ &--odd {
@include breakpoint (md) {
transform: translateY(-64px);
}