From 0ebd6b2601c190188dd37757761e8ab50d43d3fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Sat, 28 Mar 2020 22:09:27 +0100 Subject: [PATCH] Homepage: Enable Fullscreen on Carousel --- src/organisms/Carousel.svelte | 2 +- src/routes/index.svelte | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/organisms/Carousel.svelte b/src/organisms/Carousel.svelte index 716c889..d310e8e 100644 --- a/src/organisms/Carousel.svelte +++ b/src/organisms/Carousel.svelte @@ -145,7 +145,7 @@ class:gallery__photo--prev={photo === prevPhoto} class:gallery__photo--active={photo === currentPhoto} class:gallery__photo--next={photo === nextPhoto} - on:click={event => viewer && fullscreen.set(currentPhoto)} + on:click={event => fullscreen.set(currentPhoto)} > diff --git a/src/routes/index.svelte b/src/routes/index.svelte index ecbba25..56de270 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -45,6 +45,7 @@ import IconGlobe from '../atoms/IconGlobe' import InteractiveGlobe from '../molecules/InteractiveGlobe' import Carousel from '../organisms/Carousel' + import Fullscreen from '../organisms/Fullscreen' import Locations from '../organisms/Locations' import Footer from '../organisms/Footer' import SocialMetas from '../utils/SocialMetas' @@ -106,6 +107,8 @@