Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 55f5e73

Browse files
fix: use div tag instead of button to compatible with uni-app (#87)
1 parent df46f92 commit 55f5e73

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/node/views/Main.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ collectHookBuffer()
229229
<!-- toggle button -->
230230
<div v-if="!checkIsSafari()" class="vue-devtools-glowing" :style="isDragging ? 'opacity: 0.6 !important' : ''" />
231231
<div ref="panelEl" class="vue-devtools-button-panel" @pointerdown="onPointerDown">
232-
<button
232+
<div
233233
class="vue-devtools-icon-button vue-devtools-vue-button"
234234
title="Toggle Vue DevTools" aria-label="Toggle devtools panel"
235235
:style="panelVisible ? '' : 'filter:saturate(0)'"
@@ -240,9 +240,9 @@ collectHookBuffer()
240240
<path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z" />
241241
<path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z" />
242242
</svg>
243-
</button>
243+
</div>
244244
<div style="border-left: 1px solid #8883;width:1px;height:10px;" />
245-
<button
245+
<div
246246
class="vue-devtools-icon-button vue-devtools-inspector-button"
247247
:class="{ disabled: !inspectorLoaded }"
248248
:disabled="!inspectorLoaded"
@@ -256,7 +256,7 @@ collectHookBuffer()
256256
>
257257
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r=".5" fill="currentColor" /><path d="M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2" /></g>
258258
</svg>
259-
</button>
259+
</div>
260260
</div>
261261
<!-- iframe -->
262262
<Frame
@@ -282,7 +282,7 @@ collectHookBuffer()
282282
transform: translate(-50%, -50%) rotate(0);
283283
}
284284
285-
#vue-devtools-anchor button {
285+
#vue-devtools-anchor .vue-devtools-icon-button {
286286
border: none;
287287
background: none;
288288
padding: 0;

0 commit comments

Comments
 (0)