From 467233f771d745aeb9f4e69b93d2fb24a1a95d3e Mon Sep 17 00:00:00 2001 From: piotrruss Date: Sat, 4 Sep 2021 00:35:54 +0200 Subject: media query fix --- components/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/App.js') diff --git a/components/App.js b/components/App.js index 210e0e0..b24aead 100644 --- a/components/App.js +++ b/components/App.js @@ -8,7 +8,7 @@ import {FontAwesomeIcon} from '@fortawesome/react-fontawesome' const App = ({children, app, setApps}) => { const {t} = useSettings() const winRef = useRef(null); - const forceMax = useMediaQuery(`(max-width: ${app.width}) or (max-height: ${app.height})`); + const forceMax = useMediaQuery(`(max-width: ${app.width}), (max-height: ${app.height})`); useEffect(() => { move(app.name, winRef, setApps) -- cgit v1.2.3