From 3bce0ad4ae70b7c965341e88ebb34d15a1adf8d8 Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Thu, 3 Mar 2022 20:28:16 -0500 Subject: [PATCH] Lightbox backdrop fixes --- web/src/app/Poller.js | 1 - web/src/components/Notifications.js | 3 ++- web/src/components/Preferences.js | 1 - web/src/components/styles.js | 6 +++++- web/src/components/theme.js | 7 ------- 5 files changed, 7 insertions(+), 11 deletions(-) diff --git a/web/src/app/Poller.js b/web/src/app/Poller.js index c0ab8bf..0f1ec66 100644 --- a/web/src/app/Poller.js +++ b/web/src/app/Poller.js @@ -1,4 +1,3 @@ -import db from "./db"; import api from "./Api"; import subscriptionManager from "./SubscriptionManager"; diff --git a/web/src/components/Notifications.js b/web/src/components/Notifications.js index c59b0af..703e0d4 100644 --- a/web/src/components/Notifications.js +++ b/web/src/components/Notifications.js @@ -7,7 +7,7 @@ import {useState} from "react"; import {formatBytes, formatMessage, formatShortDateTime, formatTitle, topicShortUrl, unmatchedTags} from "../app/utils"; import IconButton from "@mui/material/IconButton"; import CloseIcon from '@mui/icons-material/Close'; -import {Paragraph, VerticallyCenteredContainer} from "./styles"; +import {LightboxBackdrop, Paragraph, VerticallyCenteredContainer} from "./styles"; import {useLiveQuery} from "dexie-react-hooks"; import Box from "@mui/material/Box"; import Button from "@mui/material/Button"; @@ -174,6 +174,7 @@ const Image = (props) => { setOpen(false)} + BackdropComponent={LightboxBackdrop} >