mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
disabled browser context menu
This commit is contained in:
parent
fce2f9a46a
commit
87fe62005d
@ -24,10 +24,13 @@
|
|||||||
import dragDropFileTarget from './utility/dragDropFileTarget';
|
import dragDropFileTarget from './utility/dragDropFileTarget';
|
||||||
|
|
||||||
$: currentThemeType = $currentThemeDefinition?.themeType == 'dark' ? 'theme-type-dark' : 'theme-type-light';
|
$: currentThemeType = $currentThemeDefinition?.themeType == 'dark' ? 'theme-type-dark' : 'theme-type-light';
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class={`${$currentTheme} ${currentThemeType} root`} use:dragDropFileTarget>
|
<div
|
||||||
|
class={`${$currentTheme} ${currentThemeType} root`}
|
||||||
|
use:dragDropFileTarget
|
||||||
|
on:contextmenu={e => e.preventDefault()}
|
||||||
|
>
|
||||||
<div class="iconbar">
|
<div class="iconbar">
|
||||||
<WidgetIconPanel />
|
<WidgetIconPanel />
|
||||||
</div>
|
</div>
|
||||||
@ -68,7 +71,7 @@
|
|||||||
<DragAndDropFileTarget />
|
<DragAndDropFileTarget />
|
||||||
{/if}
|
{/if}
|
||||||
<div class="snackbar-container">
|
<div class="snackbar-container">
|
||||||
{#each $openedSnackbars as snackbar(snackbar.id)}
|
{#each $openedSnackbars as snackbar (snackbar.id)}
|
||||||
<Snackbar {...snackbar} />
|
<Snackbar {...snackbar} />
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
@ -153,5 +156,4 @@
|
|||||||
right: 0;
|
right: 0;
|
||||||
bottom: var(--dim-statusbar-height);
|
bottom: var(--dim-statusbar-height);
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user