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

Commit

Permalink
updating spacing in router tab and fixing flex on component tab (#1433)
Browse files Browse the repository at this point in the history
  • Loading branch information
feeloor authored and sumitarora committed Dec 9, 2019
1 parent 7680139 commit b20e552
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
8 changes: 5 additions & 3 deletions src/frontend/components/component-tree/component-tree.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<main class="flex-grow monospace p1" *ngIf="tree" (keydown)="onKeypress($event)" tabindex="0">
<bt-node-item *ngFor="let node of tree.roots; trackBy: trackById"
<main class="flex-auto flex-grow monospace p1" *ngIf="tree" (keydown)="onKeypress($event)" tabindex="0">
<bt-node-item
*ngFor="let node of tree.roots; trackBy: trackById"
[node]="node"
[level]="0"
(selectNode)="selectNode.emit($event)"
(inspectElement)="inspectElement.emit($event)"
(collapseChildren)="collapseChildren.emit($event)"
(expandChildren)="expandChildren.emit($event)">
(expandChildren)="expandChildren.emit($event)"
>
</bt-node-item>
</main>
18 changes: 8 additions & 10 deletions src/frontend/components/router-info/router-info.html
Original file line number Diff line number Diff line change
@@ -1,37 +1,35 @@
<div class="monospace border" *ngIf="selectedRoute">
<div class="modal_header border-bottom py3 px4">
<div class="logo">
<div class="logo_text monospace left-align">
{{selectedRoute.name}}
</div>
<div class="monospace left-align">
{{selectedRoute.name}}
</div>
</div>
<div class="modal_content py3 px4">
<ul class="list-reset m0" *ngIf="selectedRoute">
<li>
<span class="info-key">
path:
</span>
</span>
<span class="info-value">
{{selectedRoute.path}}
</span>
</span>
</li>
<!-- Note: (ericjim) specificity is not a concept in the alpha component router. -->
<li *ngIf="selectedRoute.specificity">
<span class="info-key">
specificity:
</span>
</span>
<span class="info-value">
{{selectedRoute.specificity}}
</span>
</span>
</li>
<li>
<span class="info-key">
handler:
</span>
</span>
<span class="info-value">
{{selectedRoute.handler}}
</span>
</span>
</li>
<li *ngIf="hasSelection">
<span class="info-key">
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/components/router-tree/router-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class RouterTree implements OnChanges, AfterViewInit {
const svgPadding = 20;

// Compute the new tree layout.
this.tree.nodeSize([20, 150]);
this.tree.nodeSize([45, 200]);

const root: Route = {
name: 'root',
Expand Down

0 comments on commit b20e552

Please sign in to comment.