Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

Commit b20e552

Browse files
feeloorsumitarora
authored andcommitted
updating spacing in router tab and fixing flex on component tab (#1433)
1 parent 7680139 commit b20e552

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
<main class="flex-grow monospace p1" *ngIf="tree" (keydown)="onKeypress($event)" tabindex="0">
2-
<bt-node-item *ngFor="let node of tree.roots; trackBy: trackById"
1+
<main class="flex-auto flex-grow monospace p1" *ngIf="tree" (keydown)="onKeypress($event)" tabindex="0">
2+
<bt-node-item
3+
*ngFor="let node of tree.roots; trackBy: trackById"
34
[node]="node"
45
[level]="0"
56
(selectNode)="selectNode.emit($event)"
67
(inspectElement)="inspectElement.emit($event)"
78
(collapseChildren)="collapseChildren.emit($event)"
8-
(expandChildren)="expandChildren.emit($event)">
9+
(expandChildren)="expandChildren.emit($event)"
10+
>
911
</bt-node-item>
1012
</main>

src/frontend/components/router-info/router-info.html

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,35 @@
11
<div class="monospace border" *ngIf="selectedRoute">
22
<div class="modal_header border-bottom py3 px4">
3-
<div class="logo">
4-
<div class="logo_text monospace left-align">
5-
{{selectedRoute.name}}
6-
</div>
3+
<div class="monospace left-align">
4+
{{selectedRoute.name}}
75
</div>
86
</div>
97
<div class="modal_content py3 px4">
108
<ul class="list-reset m0" *ngIf="selectedRoute">
119
<li>
1210
<span class="info-key">
1311
path:
14-
</span>
12+
</span>
1513
<span class="info-value">
1614
{{selectedRoute.path}}
17-
</span>
15+
</span>
1816
</li>
1917
<!-- Note: (ericjim) specificity is not a concept in the alpha component router. -->
2018
<li *ngIf="selectedRoute.specificity">
2119
<span class="info-key">
2220
specificity:
23-
</span>
21+
</span>
2422
<span class="info-value">
2523
{{selectedRoute.specificity}}
26-
</span>
24+
</span>
2725
</li>
2826
<li>
2927
<span class="info-key">
3028
handler:
31-
</span>
29+
</span>
3230
<span class="info-value">
3331
{{selectedRoute.handler}}
34-
</span>
32+
</span>
3533
</li>
3634
<li *ngIf="hasSelection">
3735
<span class="info-key">

src/frontend/components/router-tree/router-tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class RouterTree implements OnChanges, AfterViewInit {
7575
const svgPadding = 20;
7676

7777
// Compute the new tree layout.
78-
this.tree.nodeSize([20, 150]);
78+
this.tree.nodeSize([45, 200]);
7979

8080
const root: Route = {
8181
name: 'root',

0 commit comments

Comments
 (0)