Skip to content

Commit 57fb5c8

Browse files
authored
Merge pull request #52 from buggregator/issue/#33-improve-callgraph
Issue/#33 improve callgraph usability
2 parents 4d30601 + 58e5e17 commit 57fb5c8

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

components/ProfilerPage/ProfilerPage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="profiler-page__head"></div>
44
<main class="profiler-page__main">
55
<section ref="calls" class="profiler-page__callstack">
6-
<PerfectScrollbar :style="{ height: '100vh' }">
6+
<PerfectScrollbar :style="{ height: 'calc(100vh - 48px)' }">
77
<ProfilerPageCallStack
88
:event="event.payload"
99
@hover="setActiveEdge"
@@ -165,7 +165,7 @@ export default defineComponent({
165165
}
166166
167167
.profiler-page__stat {
168-
@apply w-full flex flex-col md:w-4/5 divide-y divide-gray-300 dark:divide-gray-500;
168+
@apply w-full flex flex-col divide-y divide-gray-300 dark:divide-gray-500;
169169
}
170170
171171
.profiler-page__stat-board {

components/ProfilerPageCallGraph/ProfilerPageCallGraph.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<RenderGraph
88
v-if="isReadyGraph && graphKey"
99
:key="graphKey"
10+
class="profiler-page-call-graph__graph"
1011
:elements="graphElements"
1112
:height="graphHeight"
1213
>
@@ -134,7 +135,11 @@ export default defineComponent({
134135
@import "assets/mixins";
135136
136137
.profiler-page-call-graph {
137-
@apply relative flex rounded border border-gray-900 min-h-min min-w-min;
138+
@apply relative flex rounded border border-gray-900 min-h-min min-w-min h-full;
139+
}
140+
141+
.profiler-page-call-graph__graph {
142+
@apply w-full h-full flex;
138143
}
139144
140145
.profiler-page-call-graph--fullscreen {

components/RenderGraph/RenderGraph.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export default defineComponent({
8888
mounted() {
8989
const cy: Cytoscape = cytoscape({
9090
container: this.$refs.renderer as HTMLElement,
91+
wheelSensitivity: 0.4,
9192
elements: this.elements,
9293
layout: {
9394
name: "dagre",

0 commit comments

Comments
 (0)