Skip to content

Commit 1abb913

Browse files
committed
fix: do not show panel on action
1 parent ce6947d commit 1abb913

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

packages/core/src/client/inject/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference types="vite/client" />
22
/// <reference lib="dom" />
33

4-
import type { DockPanelStorage } from '../webcomponents'
4+
import type { DockPanelStorage } from '@vitejs/devtools-kit/client'
55
import { getDevToolsRpcClient } from '@vitejs/devtools-kit/client'
66
import { useLocalStorage } from '@vueuse/core'
77
import { createDocksContext } from '../webcomponents'

packages/core/src/client/webcomponents/components/DockPanel.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function bringUp() {
7878
7979
const { width: frameWidth, height: frameHeight } = useElementBounding(dockPanel)
8080
81-
const iframeStyle = computed(() => {
81+
const panelStyle = computed(() => {
8282
// eslint-disable-next-line no-sequences, ts/no-unused-expressions
8383
mousePosition.x, mousePosition.y
8484
@@ -162,14 +162,12 @@ onMounted(() => {
162162

163163
<template>
164164
<div
165-
v-show="context.docks.selected"
165+
v-show="context.docks.selected && context.docks.selected.type === 'action'"
166166
ref="dockPanel"
167167
class="bg-glass rounded-lg border border-base shadow"
168-
:style="iframeStyle"
168+
:style="panelStyle"
169169
>
170-
<DockPanelResizer
171-
:panel="context.panel"
172-
/>
170+
<DockPanelResizer :panel="context.panel" />
173171
<ViewEntry
174172
v-if="selected && viewsContainer"
175173
:key="selected.id"

0 commit comments

Comments
 (0)