Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit 7c4fad6

Browse files
committed
Fix for #26
1 parent 374a3cd commit 7c4fad6

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

lib/Components/Modal.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export default {
3232
3333
onTopOfStack: {
3434
type: Boolean,
35-
required: true,
35+
required: false,
36+
default: false
3637
},
3738
3839
maxWidth: {

lib/ServerError.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
<template>
22
<div
3-
class="
4-
w-screen
5-
h-screen
6-
fixed
7-
p-8
8-
bg-black bg-opacity-75
9-
inset-0
10-
z-[200000]
11-
box-border
12-
"
3+
style="position: fixed; top: 0px; right: 0px; bottom: 0px; left: 0px; z-index: 200000; box-sizing: border-box; height: 100vh; width: 100vw; background-color: rgb(0 0 0 / 0.75); padding: 2rem;"
134
@click="hide"
145
>
156
<iframe

lib/SpladeApp.vue

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
>
88
<Render
99
:key="`visit.${Splade.pageVisitId.value}`"
10-
:class="{
11-
'transition ease-in-out blur-sm': Splade.currentStack > 0,
12-
}"
10+
:style="backdropStyling"
1311
:html="html"
1412
/>
1513
</component>
@@ -37,7 +35,7 @@
3735
</template>
3836

3937
<script setup>
40-
import { ref, provide, nextTick, inject, KeepAlive } from "vue";
38+
import { ref, provide, nextTick, inject, KeepAlive, computed } from "vue";
4139
import { Splade } from "./Splade.js";
4240
import forOwn from "lodash-es/forOwn";
4341
import isString from "lodash-es/isString";
@@ -95,6 +93,19 @@ const html = ref();
9593
const modals = ref([]);
9694
const serverErrorHtml = ref(null);
9795
96+
const backdropStyling = computed(() => {
97+
if(Splade.currentStack.value < 1) {
98+
return [];
99+
}
100+
101+
return {
102+
filter: "blur(4px)",
103+
"transition-property": "filter",
104+
"transition-duration": "150ms",
105+
"transition-timing-function": "cubic-bezier(0.4, 0, 0.2, 1)",
106+
};
107+
});
108+
98109
function closeServerError() {
99110
serverErrorHtml.value = null;
100111
}

0 commit comments

Comments
 (0)