Skip to content

Commit f8118e1

Browse files
David Martínez RosDavid Martínez Ros
authored andcommitted
change the size of images, and make a parent div of the component
1 parent 4aee286 commit f8118e1

12 files changed

+26
-10
lines changed

src/app/load/load.component.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
Load the file <input type="file" (change)="onChange($event)"/>
2-
1+
<div>
2+
<ul>
3+
<li>Load the file <input type="file" (change)="onChange($event)"/></li>
4+
<li>Example json file <a href="../../data/tree.json" target="_blank">download here</a></li>
5+
</ul>
6+
</div>
37
<app-tree [(tree)]="tree"></app-tree>

src/app/load/load.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export class LoadComponent implements OnInit {
3838
var url;
3939
console.log('file:' + file);
4040
console.log('file.name:' + file.name);
41+
console.log('file.type:' + file.type);
4142
if(file != null) {
4243
url = URL.createObjectURL(file);
4344
} else {

src/app/node-tree/node-tree.component.css

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
div.node {
22
width: fit-content;
33
cursor: pointer;
4-
line-height: 13px;
5-
width:100%;
4+
line-height: 17px;
65
}
76

87
img {
98
float: left;
10-
line-height: 13px;
9+
line-height: 17px;
1110
}
1211

1312
div.text {
1413
display: inline-block;
15-
line-height: 11px;
14+
line-height: 15px;
1615
font-family: arial;
1716
border: 1px solid lightgoldenrodyellow;
1817
color:black;
19-
background: darkgoldenrod;
18+
background: lightgoldenrodyellow;
2019
}
2120

2221
div.text:hover {
2322
border: 1px solid darkgoldenrod;
2423
color:black;
25-
background: lightgoldenrodyellow;
24+
background: darkgoldenrod;
2625
}
2726

2827
div.text:active {

src/app/tree/tree.component.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
div.parent {
2+
border: 1px solid darkgoldenrod;
3+
color:black;
4+
background: lightgoldenrodyellow;
5+
width:fit-content;
6+
padding-top: 5px;
7+
padding-left: 5px;
8+
padding-bottom: 5px;
9+
padding-right: 5px;
10+
}

src/app/tree/tree.component.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
<div *ngFor="let node of tree | async; let lastNode = last">
2-
<app-node-tree [node]="node" [parent]="" [lastNode]="lastNode"></app-node-tree>
1+
<div class="parent">
2+
<div *ngFor="let node of tree | async; let lastNode = last">
3+
<app-node-tree [node]="node" [parent]="" [lastNode]="lastNode"></app-node-tree>
4+
</div>
35
</div>

src/assets/blank_node.png

-16 Bytes
Loading

src/assets/collapse_icon.png

111 Bytes
Loading

src/assets/expand_icon.png

128 Bytes
Loading

src/assets/line_continue.png

30 Bytes
Loading
28 Bytes
Loading

0 commit comments

Comments
 (0)