Skip to content

Commit 221ac6f

Browse files
committed
crappy styling
1 parent bd94bf4 commit 221ac6f

File tree

5 files changed

+36
-32
lines changed

5 files changed

+36
-32
lines changed

src/components/ComponentDisplay.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
<div class="component-title">
1919
<p>{{ componentData.componentName }}</p>
2020
</div>
21-
<div class="component-children">
22-
<p># of children: {{ componentMap[componentData.componentName].children.length }} </p>
23-
<p>children: {{ componentMap[componentData.componentName].children }}</p>
21+
<ul class="component-children">
22+
<li># of children: {{ componentMap[componentData.componentName].children.length }} </li>
23+
<li>children: {{ componentMap[componentData.componentName].children }}</li>
2424
<!-- <p v-for="child in childList" :key="childList.indexOf(child)"> {{ child.text }}</p> -->
25-
</div>
25+
</ul>
2626
<q-menu context-menu>
2727
<q-list>
2828
<q-item clickable v-ripple v-close-popup @click="handleAddChild">
@@ -179,13 +179,14 @@ export default {
179179
top: 0rem;
180180
left: 2px;
181181
color: black;
182+
list-style: none;
182183
}
183184
.component-display {
184185
/* border: 3px dashed rgb(159, 122, 122); */
185186
/* height: 500px; */
186187
/* width: 500px; */
187-
/* original is 70vh */
188-
height: 95vh;
188+
/* original is 70 */
189+
height: 90vh;
189190
width: 100%;
190191
position: relative;
191192
background: darkslategray;

src/components/RouteDisplay.vue

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<template>
2-
<div>
3-
<q-input
4-
@keyup.enter.native="handleEnterKeyPress"
5-
standout="bg-secondary text-white"
6-
bottom-slots
7-
v-model="newRoute"
8-
label="Enter new route"
9-
:dense="dense"
10-
class="input-add"
11-
>
12-
</q-input>
13-
<!--<div class="route-display">-->
2+
<div>
3+
<q-input
4+
@keyup.enter.native="handleEnterKeyPress"
5+
standout="bg-secondary text-white"
6+
bottom-slots
7+
v-model="newRoute"
8+
label="Enter new route"
9+
:dense="dense"
10+
class="input-add"
11+
></q-input>
12+
<!--<div class="route-display">-->
1413
<!--
1514
1615
-->
@@ -19,34 +18,34 @@
1918
</template>
2019

2120
<script>
22-
import Routes from './Routes'
23-
import { mapState, mapActions } from 'vuex'
21+
import Routes from "./Routes";
22+
import { mapState, mapActions } from "vuex";
2423
2524
export default {
26-
name: 'RouteDisplay',
25+
name: "RouteDisplay",
2726
components: {
2827
Routes
2928
},
3029
computed: {
31-
...mapState(['routes'])
30+
...mapState(["routes"])
3231
},
33-
data () {
32+
data() {
3433
return {
35-
newRoute: ''
36-
}
34+
newRoute: ""
35+
};
3736
},
3837
methods: {
39-
...mapActions(['addRouteToRouteMap', 'setRoutes']),
40-
handleEnterKeyPress () {
38+
...mapActions(["addRouteToRouteMap", "setRoutes"]),
39+
handleEnterKeyPress() {
4140
this.addRouteToRouteMap(this.newRoute)
4241
.then(() => {
43-
this.newRoute = ''
42+
this.newRoute = "";
4443
})
4544
46-
.catch(err => console.log(err))
45+
.catch(err => console.log(err));
4746
}
4847
}
49-
}
48+
};
5049
</script>
5150

5251
<style scoped>

src/components/Routes.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22

3-
<div>
3+
<div class="home-sidebar">
44
<!--<div class="route-view">-->
55
<a
66
:class="route === activeRoute ? 'panel-block is-active' : 'panel-block'"

src/components/Tree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default {
6565
this.tree = build['App']
6666
}
6767
},
68-
mounted () {
68+
created () {
6969
this.buildTree()
7070
}
7171
}

src/css/app.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
main {
33
background: #f2f6f5;
44
overflow: auto;
5+
56
}
67
.gradient {
78
background: black;
89
// background: rgb(22,108,105);
910
// background: linear-gradient(36deg, rgba(22,108,105,1) 0%, rgba(20,32,23,1) 100%);
1011
}
12+
// ::-webkit-scrollbar {
13+
// width: 2px;
14+
// }

0 commit comments

Comments
 (0)