Fix tauri modal drag region (#72)

This commit is contained in:
Geometrically
2023-06-20 17:14:48 -07:00
committed by GitHub
parent 6e0659af4c
commit 33f3479569
2 changed files with 23 additions and 3 deletions

View File

@@ -1,12 +1,17 @@
<template>
<div v-if="shown">
<div
:class="{ shown: actuallyShown }"
class="tauri-overlay"
data-tauri-drag-region
@click="() => (closable ? hide() : {})"
/>
<div
:class="{
shown: actuallyShown,
noblur: props.noblur,
}"
class="modal-overlay"
data-tauri-drag-region
@click="() => (closable ? hide() : {})"
/>
<div class="modal-container" :class="{ shown: actuallyShown }">
@@ -69,6 +74,21 @@ defineExpose({
</script>
<style lang="scss" scoped>
.tauri-overlay {
position: fixed;
visibility: hidden;
top: 0;
left: 0;
width: 100%;
height: 100px;
z-index: 20;
&.shown {
opacity: 1;
visibility: visible;
}
}
.modal-overlay {
visibility: hidden;
position: fixed;
@@ -76,7 +96,7 @@ defineExpose({
left: 0;
width: 100%;
height: 100%;
z-index: 20;
z-index: 19;
transition: all 0.3s ease-in-out;
&.shown {

View File

@@ -1,7 +1,7 @@
{
"name": "omorphia",
"type": "module",
"version": "0.4.30",
"version": "0.4.31",
"files": [
"dist",
"lib"