From 3f87be3f46f73e5e5bfa9530c129f3be50a75fb7 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Wed, 2 Mar 2022 19:10:32 +0100 Subject: [PATCH] web: not supported message on mobile screens --- packages/web/src/Screen.svelte | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/packages/web/src/Screen.svelte b/packages/web/src/Screen.svelte index 931da812..7db86775 100644 --- a/packages/web/src/Screen.svelte +++ b/packages/web/src/Screen.svelte @@ -24,10 +24,14 @@ import DragAndDropFileTarget from './DragAndDropFileTarget.svelte'; import dragDropFileTarget from './utility/dragDropFileTarget'; import TitleBar from './widgets/TitleBar.svelte'; + import FontIcon from './icons/FontIcon.svelte'; + import getElectron from './utility/getElectron'; $: currentThemeType = $currentThemeDefinition?.themeType == 'dark' ? 'theme-type-dark' : 'theme-type-light'; $: themeStyle = ``; + + const isElectron = !!getElectron(); @@ -36,8 +40,15 @@ {/if} +
+
+
Sorry, DbGate is not supported on mobile devices.
+
Please visit DbGate web for more info.
+
+
e.preventDefault()} > @@ -174,4 +185,25 @@ right: 0; height: var(--dim-titlebar-height); } + + .not-supported { + display: none; + } + + @media only screen and (max-width: 600px) { + .dbgate-screen:not(.isElectron) { + display: none; + } + + .not-supported:not(.isElectron) { + display: block; + } + } + + .not-supported { + text-align: center; + } + .big-icon { + font-size: 20pt; + }