Skip to content

Commit a44978f

Browse files
authoredJul 23, 2024··
fix(applet): hide select component button on seperate window (#541)
1 parent d52a529 commit a44978f

File tree

1 file changed

+2
-2
lines changed
  • packages/applet/src/modules/components

1 file changed

+2
-2
lines changed
 

‎packages/applet/src/modules/components/index.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { computed, onUnmounted, ref, watch } from 'vue'
33
import { Pane, Splitpanes } from 'splitpanes'
44
import type { CustomInspectorNode, CustomInspectorState } from '@vue/devtools-kit'
5-
import { isInChromePanel, sortByKey } from '@vue/devtools-shared'
5+
import { isInChromePanel, isInSeparateWindow, sortByKey } from '@vue/devtools-shared'
66
import {
77
DevToolsMessagingEvents,
88
rpc,
@@ -289,7 +289,7 @@ function closeComponentRenderCode() {
289289
<div v-if="componentTreeLoaded" class="h-full flex flex-col p2">
290290
<div class="flex py2">
291291
<VueInput v-model="filterComponentName" :loading-debounce-time="250" :loading="!filtered" placeholder="Find components..." class="flex-1 text-3.5" />
292-
<button v-tooltip.bottom="'Select component in the page'" px-1 class="hover:(color-#00dc82)" @click="inspectComponentInspector">
292+
<button v-if="!isInSeparateWindow" v-tooltip.bottom="'Select component in the page'" px-1 class="hover:(color-#00dc82)" @click="inspectComponentInspector">
293293
<svg
294294
xmlns="http://www.w3.org/2000/svg"
295295
style="height: 1.1em; width: 1.1em;"

0 commit comments

Comments
 (0)
Please sign in to comment.