diff --git a/packages/core/src/client/webcomponents/components/views/ViewIframe.vue b/packages/core/src/client/webcomponents/components/views/ViewIframe.vue index 421890842..cffe6c228 100644 --- a/packages/core/src/client/webcomponents/components/views/ViewIframe.vue +++ b/packages/core/src/client/webcomponents/components/views/ViewIframe.vue @@ -5,6 +5,7 @@ import type { IframePanes } from 'iframe-pane' import type { CSSProperties } from 'vue' import { REMOTE_CONNECTION_KEY } from '@vitejs/devtools-kit/constants' import { computed, nextTick, onMounted, onUnmounted, ref, useTemplateRef, watchEffect } from 'vue' +import { getEntryGroup } from '../../state/dock-settings' import { sharedStateToRef } from '../../state/docks' const props = defineProps<{ @@ -45,6 +46,13 @@ function stripRemoteConnectionParam(url: string): string { const settings = sharedStateToRef(props.context.docks.settings) const showAddressBar = computed(() => settings.value.showIframeAddressBar ?? true) const isEdgeMode = computed(() => props.context.panel.store.mode === 'edge') +const addressBarBorderClass = computed(() => { + if (isEdgeMode.value) + return 'border-b' + if (getEntryGroup(props.context.docks.entries, props.entry)) + return 'border-t border-r rounded-tr-md' + return 'border rounded-t-md border-b-0' +}) const ADDRESS_BAR_HEIGHT = 40 const isLoading = ref(true) @@ -263,8 +271,8 @@ onUnmounted(() => {