From 424ce56ac682857ba522e826d880fb09ec04a37d Mon Sep 17 00:00:00 2001 From: Martin Quarda Date: Thu, 9 May 2024 11:11:26 +0200 Subject: [PATCH] better close button --- frontend/src/scripts/index.js | 6 +++--- frontend/src/styles/index.scss | 8 +++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index 17a70f2..c5b85e2 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -4,7 +4,7 @@ import React, { Component } from 'react'; import { render } from "react-dom"; import Gallery from "react-photo-gallery"; -import Carousel, { Modal, ModalGateway } from "react-images"; +import { Modal, ModalGateway } from "react-images"; import ImageGallery from "react-image-gallery"; @@ -69,8 +69,8 @@ class Main extends Component { this.setState({faq: !this.state.faq}); } renderCloseButton(){ - return } render(){ diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scss index 0da5067..784ebf3 100644 --- a/frontend/src/styles/index.scss +++ b/frontend/src/styles/index.scss @@ -82,4 +82,10 @@ form.container{ position:fixed; overflow-y:scroll; overflow-x:hidden; -} \ No newline at end of file +} + +.image-gallery-close { + top:0; + right:0; + position: absolute; +}