Skip to content

Commit 4b96c4a

Browse files
Profiler Teamcopybara-github
authored andcommitted
Flatten the source code panel
PiperOrigin-RevId: 790779669
1 parent 95c5984 commit 4b96c4a

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

frontend/app/components/graph_viewer/graph_viewer.ng.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
[showMetadata]="showMetadata"
3838
></hlo-text-view>
3939
</div>
40-
<mat-expansion-panel class="hlo-text-view-panel" *ngIf="sourceCodeServiceIsAvailable">
40+
<mat-expansion-panel class="stack-trace-snippet-panel" *ngIf="sourceCodeServiceIsAvailable">
4141
<mat-expansion-panel-header>
4242
<mat-panel-title>Stack Trace Source Code Snippets</mat-panel-title>
4343
</mat-expansion-panel-header>

frontend/app/components/graph_viewer/graph_viewer.scss

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,20 @@ mat-progress-bar {
6262
z-index: 2;
6363
}
6464

65+
.stack-trace-snippet-panel {
66+
position: sticky;
67+
width: 100%;
68+
box-shadow: none;
69+
border-bottom: .5px solid silver;
70+
border-radius: 0;
71+
}
72+
73+
.stack-trace-snippet-container {
74+
min-height: 400px;
75+
max-height: 400px;
76+
overflow-y: auto;
77+
}
78+
6579
.graph-container {
6680
width: 100%;
6781
height: 100%;
@@ -85,9 +99,3 @@ mat-progress-bar {
8599
.progress-container-graphviz {
86100
display: flex;
87101
}
88-
89-
.stack-trace-snippet-container {
90-
min-height: 400px;
91-
max-height: 400px;
92-
overflow-y: auto;
93-
}

0 commit comments

Comments
 (0)