diff --git a/packages/web/src/DragAndDropFileTarget.svelte b/packages/web/src/DragAndDropFileTarget.svelte index 9e17238d3..88429fada 100644 --- a/packages/web/src/DragAndDropFileTarget.svelte +++ b/packages/web/src/DragAndDropFileTarget.svelte @@ -2,7 +2,7 @@ import _ from 'lodash'; import FontIcon from './icons/FontIcon.svelte'; - import { extensions } from './stores'; + import { extensions, isFileDragActive } from './stores'; import getElectron from './utility/getElectron'; @@ -21,6 +21,15 @@
Drop the files to upload to DbGate
Supported file types: {fileTypeNames.join(', ')}
+
{ + $isFileDragActive = false; + }} + > + + Close +
@@ -53,4 +62,12 @@ display: flex; justify-content: space-around; } + + .class-button { + position: fixed; + top: 20px; + right: 20px; + font-size: 14pt; + cursor: pointer; + } diff --git a/packages/web/src/stores.ts b/packages/web/src/stores.ts index 4efd690d7..421fbc868 100644 --- a/packages/web/src/stores.ts +++ b/packages/web/src/stores.ts @@ -89,7 +89,7 @@ export const openedSnackbars = writable([]); export const nullStore = readable(null, () => {}); export const currentArchive = writableWithStorage('default', 'currentArchive'); export const currentApplication = writableWithStorage(null, 'currentApplication'); -export const isFileDragActive = writable(false); +export const isFileDragActive = writable(true); export const selectedCellsCallback = writable(null); export const loadingPluginStore = writable({ loaded: false,