Skip to content

Commit 79b0f17

Browse files
committed
fix: panel size
1 parent 5f48952 commit 79b0f17

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
lines changed

packages/devtools/src/app/components/flowmap/ModuleFlow.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const codeDisplay = computed(() => {
113113
</script>
114114

115115
<template>
116-
<div pt4 w-full min-w-full>
116+
<div pt4 w-max>
117117
<div v-if="info.importers?.length" text-sm>
118118
<div flex>
119119
<VMenu>

packages/devtools/src/app/components/flowmap/ModuleFlowLoader.vue

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,19 @@ function selectFlowNode(v: boolean) {
4343
</script>
4444

4545
<template>
46-
<div of-auto w-full h-full relative>
47-
<div v-if="info" flex="~ col" w-full min-w-full>
48-
<FlowmapModuleFlow
49-
p4
50-
:info
51-
:session
52-
:transforms-loading
53-
@select="selectFlowNode"
54-
/>
55-
<ChartModuleFlamegraph
56-
:info
57-
:session="session"
58-
:flow-node-selected="flowNodeSelected"
59-
/>
60-
</div>
61-
<VisualLoading v-else />
46+
<div v-if="info" flex="~ col">
47+
<FlowmapModuleFlow
48+
p4
49+
:info
50+
:session
51+
:transforms-loading
52+
@select="selectFlowNode"
53+
/>
54+
<ChartModuleFlamegraph
55+
:info
56+
:session="session"
57+
:flow-node-selected="flowNodeSelected"
58+
/>
6259
</div>
60+
<VisualLoading v-else />
6361
</template>

packages/devtools/src/app/pages/session/[session].vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,19 @@ onMounted(async () => {
8080

8181
<div
8282
v-if="route.query.module" fixed inset-0
83-
backdrop-blur-5
84-
z-panel-content
83+
backdrop-blur-5 z-panel-content
8584
>
8685
<div
8786
:key="(route.query.module as string)"
8887
v-on-click-outside="closeFlowPanel"
8988
fixed right-0 bottom-0 top-20 z-panel-content
90-
w-250 of-scroll bg-glass border="l t base rounded-tl-xl"
91-
max-w-90vw
89+
of-scroll bg-glass border="l t base rounded-tl-xl"
90+
max-w-90vw min-w-250
9291
>
9392
<FlowmapModuleFlowLoader
9493
:module="(route.query.module as string)"
9594
:session="session"
95+
w-max
9696
/>
9797
<DisplayCloseButton
9898
absolute right-2 top-2

0 commit comments

Comments
 (0)