Skip to content

Commit

Permalink
Merge pull request #52 from buggregator/issue/#33-improve-callgraph
Browse files Browse the repository at this point in the history
Issue/#33 improve callgraph usability
  • Loading branch information
butschster authored Oct 26, 2023
2 parents 4d30601 + 58e5e17 commit 57fb5c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/ProfilerPage/ProfilerPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="profiler-page__head"></div>
<main class="profiler-page__main">
<section ref="calls" class="profiler-page__callstack">
<PerfectScrollbar :style="{ height: '100vh' }">
<PerfectScrollbar :style="{ height: 'calc(100vh - 48px)' }">
<ProfilerPageCallStack
:event="event.payload"
@hover="setActiveEdge"
Expand Down Expand Up @@ -165,7 +165,7 @@ export default defineComponent({
}
.profiler-page__stat {
@apply w-full flex flex-col md:w-4/5 divide-y divide-gray-300 dark:divide-gray-500;
@apply w-full flex flex-col divide-y divide-gray-300 dark:divide-gray-500;
}
.profiler-page__stat-board {
Expand Down
7 changes: 6 additions & 1 deletion components/ProfilerPageCallGraph/ProfilerPageCallGraph.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<RenderGraph
v-if="isReadyGraph && graphKey"
:key="graphKey"
class="profiler-page-call-graph__graph"
:elements="graphElements"
:height="graphHeight"
>
Expand Down Expand Up @@ -134,7 +135,11 @@ export default defineComponent({
@import "assets/mixins";
.profiler-page-call-graph {
@apply relative flex rounded border border-gray-900 min-h-min min-w-min;
@apply relative flex rounded border border-gray-900 min-h-min min-w-min h-full;
}
.profiler-page-call-graph__graph {
@apply w-full h-full flex;
}
.profiler-page-call-graph--fullscreen {
Expand Down
1 change: 1 addition & 0 deletions components/RenderGraph/RenderGraph.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export default defineComponent({
mounted() {
const cy: Cytoscape = cytoscape({
container: this.$refs.renderer as HTMLElement,
wheelSensitivity: 0.4,
elements: this.elements,
layout: {
name: "dagre",
Expand Down

0 comments on commit 57fb5c8

Please sign in to comment.