File tree 1 file changed +20
-9
lines changed
1 file changed +20
-9
lines changed Original file line number Diff line number Diff line change 1
1
import type { ErrorPayload } from 'types/hmrPayload'
2
2
3
+ // set :host styles to make playwright detect the element as visible
3
4
const template = /*html*/ `
4
5
<style>
5
6
:host {
7
+ position: fixed;
8
+ top: 0;
9
+ left: 0;
10
+ width: 100%;
11
+ height: 100%;
12
+ }
13
+
14
+ .backdrop {
6
15
position: fixed;
7
16
z-index: 99999;
8
17
top: 0;
@@ -99,15 +108,17 @@ code {
99
108
cursor: pointer;
100
109
}
101
110
</style>
102
- <div class="window">
103
- <pre class="message"><span class="plugin"></span><span class="message-body"></span></pre>
104
- <pre class="file"></pre>
105
- <pre class="frame"></pre>
106
- <pre class="stack"></pre>
107
- <div class="tip">
108
- Click outside or fix the code to dismiss.<br>
109
- You can also disable this overlay by setting
110
- <code>server.hmr.overlay</code> to <code>false</code> in <code>vite.config.js.</code>
111
+ <div class="backdrop">
112
+ <div class="window">
113
+ <pre class="message"><span class="plugin"></span><span class="message-body"></span></pre>
114
+ <pre class="file"></pre>
115
+ <pre class="frame"></pre>
116
+ <pre class="stack"></pre>
117
+ <div class="tip">
118
+ Click outside or fix the code to dismiss.<br>
119
+ You can also disable this overlay by setting
120
+ <code>server.hmr.overlay</code> to <code>false</code> in <code>vite.config.js.</code>
121
+ </div>
111
122
</div>
112
123
</div>
113
124
`
You can’t perform that action at this time.
0 commit comments