Skip to content

Commit 9d6dbc9

Browse files
committed
fix: fine tune scrollbar and close button of error panel
1 parent 88a8f9a commit 9d6dbc9

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

packages/uhk-web/src/app/app.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@
4141
<router-outlet></router-outlet>
4242
</as-split-area>
4343
<as-split-area *ngIf="statusBuffer" [size]="splitSizes.bottom" class="error-panel" [@errorPanel]>
44-
<pre [innerHTML]="statusBuffer | newLineToBr | safeHtml"></pre>
4544
<button type="button" class="btn-close" aria-label="Close" (click)="closeErrorPanel()"></button>
45+
<div class="error-panel-content">
46+
<pre [innerHTML]="statusBuffer | newLineToBr | safeHtml"></pre>
47+
</div>
4648
</as-split-area>
4749
</as-split>
4850
</div>

packages/uhk-web/src/app/app.component.scss

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,23 @@
2424
.btn-close {
2525
position: absolute;
2626
top: 2px;
27-
right: 2px;
27+
right: 14px;
2828
display: inline;
29+
z-index: 10;
2930
}
3031

31-
pre {
32+
.error-panel-content {
33+
overflow: auto;
3234
position: absolute;
35+
top: 0;
36+
bottom: 0;
3337
left: 0;
3438
right: 0;
35-
bottom: 0;
36-
top: 0;
37-
margin: 0;
39+
40+
pre {
41+
overflow: visible;
42+
margin: 0;
43+
}
3844
}
3945
}
4046

0 commit comments

Comments
 (0)