Skip to content

Commit 8c40b5c

Browse files
committed
truly reponsive design
1 parent 6ec9127 commit 8c40b5c

File tree

6 files changed

+10
-29
lines changed

6 files changed

+10
-29
lines changed

package/tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Tree {
1919
}
2020

2121
// deep copies only the state of each component and creates a new tree
22-
getCopy(copy = new Tree('root', true, 'root')) {
22+
getCopy(copy = new Tree('root', true)) {
2323
// copy state of children
2424
copy.children = this.children.map(child => new Tree(child.component.state, true, child.component.constructor.name));
2525

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
.action-container {
2-
flex: 3 auto;
3-
height: 100%;
4-
overflow: scroll;
2+
overflow: auto;
53
background-color: $brand-color;
64
}
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
.state-container {
2-
font-size: 15px;
3-
flex: 6 auto;
4-
height: 100%;
5-
overflow: scroll;
2+
font-size: 12px;
3+
overflow: auto;
64
background-color: $brand-color;
75
}
8-
9-
// .state-container ul {
10-
// background-color: $brand-color;
11-
// }
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.travel-container {
2-
height: 20%;
32
display: flex;
43
flex-direction: row;
54
align-items: center;
65
justify-content: space-around;
7-
}
6+
}

src/app/styles/styles.scss

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.main-container {
22
height: 100%;
3-
margin: 0;
4-
padding: 0;
3+
margin: 0 auto;
4+
padding: 0 auto;
55
background-color: $brand-color;
66
overflow: hidden;
77
}
@@ -11,10 +11,10 @@
1111
}
1212

1313
.body-container {
14-
height: 100%;
14+
height: 95%;
1515
width: 100%;
1616
display: grid;
17-
grid-template-rows: 5fr 1fr;
17+
grid-template-rows: 8fr 1fr;
1818
grid-template-areas:
1919
"actions states"
2020
"travel travel";
@@ -25,17 +25,14 @@
2525
// this is not working for some reason
2626
@media (max-width: 500px) {
2727
.body-container {
28-
grid-template-rows: 2.5fr 2.5fr 1fr;
28+
grid-template-rows: 4fr 4fr 1fr;
2929
grid-template-areas:
3030
"actions"
3131
"states"
3232
"travel";
3333
}
3434
}
3535
.travel-container {
36-
// height: 10%;
37-
height: 100%;
38-
margin-right: 1%;
3936
grid-area: travel;
4037
}
4138

src/extension/tree.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)