Skip to content

Commit 3c8662f

Browse files
committed
Merge branch 'TeamUI/Flex' of https://github.com/oslabs-beta/OverVue into TeamUI/Flex
2 parents a37866b + 5502c76 commit 3c8662f

File tree

8 files changed

+386
-297
lines changed

8 files changed

+386
-297
lines changed

src/components/ComponentDisplay.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Description:
1212
v-on:click="handleClick"
1313
>
1414
<!-- This is the actual component box -->
15-
<!-- https://www.npmjs.com/package/vue-draggable-resizable -->
15+
<!-- https://www.npmjs.com/package/vue-draggable-resizable -->
1616
<VueDraggableResizable
1717
class-name="component-box"
1818
v-for="componentData in activeRouteArray"
@@ -207,7 +207,7 @@ export default {
207207
return this.imagePath[this.activeRoute]
208208
? {
209209
background: `url("${this.userImage}") center/contain no-repeat rgba(223, 218, 218, 0.886)`
210-
}
210+
}
211211
: {};
212212
}
213213
},
@@ -471,6 +471,7 @@ export default {
471471
.menu {
472472
margin-bottom: 0px !important;
473473
}
474+
474475
.component-box {
475476
color: white;
476477
border: 1.2px dashed rgb(231, 203, 75);

src/components/dashboard_items/ComponentDetails.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Description:
88
-->
99

1010
<template>
11-
<div class="container">
11+
<div class="inner-div">
1212
<q-card id="store-cards" v-if="this.activeComponentObj">
1313
<q-tabs
1414
v-model="tab"
@@ -147,16 +147,25 @@ i
147147
background black
148148
149149
#store-cards
150-
height 80%
150+
height 100%
151151
border-radius 0
152152
background #737578
153153
154154
#blank-card
155-
height 80%
155+
height 100%
156156
border-radius 0
157157
background-color #202122
158158
159159
.html-bg
160160
// give html background color of grey
161161
background-color #202122
162+
163+
164+
.inner-div {
165+
display: flex;
166+
flex-direction: column;
167+
justify-content: flex-start;
168+
align-content: stretch;
169+
height: 100%;
170+
}
162171
</style>

src/components/dashboard_items/Dashboard.vue

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,44 @@ Description:
77

88
<template>
99

10-
<div class="home-sidebar drawer-menu">
11-
12-
<q-card id="dashboard-cards" style="fill">
10+
<q-card id="dashboard-cards" class="bord">
1311
<q-tabs
1412
v-model="tab"
1513
dense
16-
class="bg-subaccent text-white"
14+
class="bg-subaccent text-white "
1715
active-color="secondary"
1816
indicator-color="secondary"
1917
align="left"
2018
>
21-
<q-tab name="detail" id="label-text"><i class="fas fa-code"></i></q-tab>
22-
<q-tab name="tree" id="label-text"><i class="fas fa-code-branch fa-flip-vertical" /></q-tab>
23-
<q-tab name="store" id="label-text" ><i class="fas fa-store-alt"></i></q-tab>
19+
20+
<q-tab name="detail" id="label-text" style="border-right: 3px solid black"><i class="fas fa-code"></i></q-tab>
21+
<q-tab name="tree" id="label-text"
22+
><i class="fas fa-code-branch fa-flip-vertical"
23+
/></q-tab>
24+
<q-tab name="store" id="label-text" style="border-left: 3px solid black"
25+
><i class="fas fa-store-alt"></i
26+
></q-tab>
2427
</q-tabs>
25-
<q-tab-panels v-model="tab" animated class="html-bg text-white ">
28+
<q-tab-panels v-model="tab" animated class="html-bg text-white">
2629
<q-tab-panel name="detail">
2730
<ComponentDetails />
2831
</q-tab-panel>
29-
<q-tab-panel name="tree" >
32+
<q-tab-panel name="tree">
3033
<Tree />
3134
</q-tab-panel>
3235
<q-tab-panel name="store">
3336
<VuexStore />
3437
</q-tab-panel>
3538
</q-tab-panels>
3639
</q-card>
37-
</div>
3840

3941
</template>
4042

4143
<script>
4244
import { mapState, mapActions } from "vuex";
43-
import Tree from "./Tree";
45+
import Tree from "./Tree.vue";
4446
import VuexStore from "./DashboardVuexStore.vue";
45-
import ComponentDetails from "./ComponentDetails";
47+
import ComponentDetails from "./ComponentDetails.vue";
4648
4749
export default {
4850
components: {
@@ -173,29 +175,41 @@ i {
173175
.q-tab-panel {
174176
// matchs the code editor bg
175177
background: $subprimary;
178+
176179
}
177180
178181
// changes the length of the tab panels
179182
.q-tab-panels {
180-
height: 87vh;
181-
padding: 0px !important;
183+
padding: 0px !important;
184+
border-top: 3px solid black;
182185
}
183186
184187
.q-tabs {
185-
background: #11120F;
188+
background: #11120F
186189
}
187190
188191
.toolbar-background {
189192
background: black;
190193
}
191194
192195
#dashboard-cards {
193-
height: 80%;
196+
display: flex;
197+
flex-direction: column;
198+
height: 100%;
194199
border-radius: 0px;
195200
background: #737578;
196201
}
197202
.html-bg {
198203
// give html background color of grey
199204
background-color: #202122;
200205
}
206+
207+
.inner-div {
208+
height: 100%;
209+
}
210+
211+
.bord {
212+
border-left: 3px solid black;
213+
border-right: 3px solid black;
214+
}
201215
</style>

src/components/home_sidebar_items/ComponentTab/ComponentTab.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default {
3737
.html-bg
3838
background-color: #202122
3939
40-
#store-cards
40+
#store-cards
4141
height: 100%
4242
border-radius: 0px
4343
background-color: #202122
@@ -50,7 +50,6 @@ export default {
5050
// changes the length of the tab panels
5151
.q-tab-panels
5252
height 100%
53-
padding 0 !important
5453
5554
.q-tabs
5655
background #11120F

src/components/home_sidebar_items/ComponentTab/CreateComponent.vue

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Description:
55
-->
66
<!-- 4.0 adjustment: conditional render to switch between new comp name input and editing active comp name, moved from EditDeleteComponents -->
77
<template>
8-
<div class="home-sidebar drawer-menu">
8+
<div class="inner-div drawer-menu">
99
<br />
1010
<form
1111
v-on:submit.prevent="createComponent"
@@ -128,9 +128,13 @@ export default {
128128
margin: 0.75rem;
129129
width: 90%;
130130
}
131-
.home-sidebar {
132-
margin: 0.5rem;
133-
padding: 0.5rem;
134-
border-radius: 5px;
131+
132+
.inner-div {
133+
display: flex;
134+
flex-direction: column;
135+
justify-content: flex-start;
136+
padding-left: 15px;
137+
padding-right: 15px;
138+
height: 100%;
135139
}
136140
</style>

0 commit comments

Comments
 (0)