Skip to content

Commit cad9dee

Browse files
authored
Merge branch 'dev' into megan/editdeletemenu
2 parents 08e8065 + 7684e6f commit cad9dee

File tree

11 files changed

+60
-43
lines changed

11 files changed

+60
-43
lines changed

src/components/ComponentDisplay.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ export default {
208208
mockBg() {
209209
return this.imagePath[this.activeRoute]
210210
? {
211-
background: `url("${this.userImage}") center/contain no-repeat rgba(223, 218, 218, 0.886)`,
211+
background: `url("${this.userImage}") no-repeat rgba(223, 218, 218, 0.886) top left`,
212+
"background-size": "contain"
212213
}
213214
: {};
214215
},
@@ -422,9 +423,13 @@ export default {
422423
list-style: none;
423424
}
424425
.component-display {
425-
height: 95.4vh;
426+
top: 0px;
427+
left: 0px;
426428
width: 100%;
427-
position: relative;
429+
height: 100%;
430+
min-width: 1600px;
431+
min-height: 900px;
432+
position: absolute;
428433
}
429434
.grid-bg {
430435
background-color: rgba(223, 218, 218, 0.886);

src/components/dashboard_items/Dashboard.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,9 @@ i {
125125
}
126126
127127
.home-sidebar {
128-
margin: 1rem;
128+
padding: 1rem;
129129
justify-content: center;
130130
border-radius: 5px;
131-
padding: 0px;
132131
background: $subsecondary;
133132
}
134133

src/components/dashboard_items/Tree.vue

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,19 @@ Description:
1212
:config="treeConfig"
1313
ref="tree"
1414
@wheel="zoom">
15-
<template v-slot:node="{ node, collapsed }">
15+
<template v-slot:node="{ node }">
1616
<span v-if="this.activeComponent === node.value"
1717
class="tree-node-active"
18-
:style="{ border: collapsed ? '2px solid grey' : '' }"
19-
2018
>
2119
{{ node.value }}
2220
</span>
2321
<span v-else-if="this.activeRoute === node.value"
2422
class="tree-node-activeRoute"
25-
:style="{ border: collapsed ? '2px solid grey' : '' }"
26-
2723
>
2824
{{ node.value }}
2925
</span>
3026
<span v-else
3127
class="tree-node"
32-
:style="{ border: collapsed ? '2px solid grey' : '' }"
3328
@click="activateNode(node.value)"
3429
>
3530
{{ node.value }}
@@ -152,7 +147,6 @@ export default {
152147
watch: {
153148
componentMap: {
154149
handler(){
155-
console.log(this.componentMap)
156150
this.treeData = this.buildTree(this.componentMap);
157151
},
158152
deep: true,
@@ -161,7 +155,7 @@ export default {
161155
data() {
162156
return {
163157
treeData: this.buildTree(this.$store.state.componentMap),
164-
treeConfig: { nodeWidth: 120, nodeHeight: 80, levelHeight: 200},
158+
treeConfig: { nodeWidth: 175, nodeHeight: 100, levelHeight: 200},
165159
componentData: this.$store.state.componentMap,
166160
}
167161
}
@@ -181,15 +175,16 @@ export default {
181175
182176
.tree-node, .tree-node-active, .tree-node-activeRoute {
183177
display: inline-block;
184-
width: 90%;
185178
padding: 8px;
179+
min-width: 80%;
186180
margin: 6px;
187181
min-height: 28px;
188182
color: $menutext;
189183
background-color: $secondary;
190184
text-align: center;
191185
line-height: 28px;
192186
border-radius: 4px;
187+
word-wrap: break-word;
193188
}
194189
195190
.tree-node-active {

src/components/home_sidebar_items/ComponentTab/ComponentTab.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Functionality includes: if active component is selected, will switch view to editing mode. If not, it will be in create mode -->
33
<template>
44
<q-card id="store-cards">
5+
<UploadImage />
56
<CreateComponent v-if="activeComponent === ''"/>
67
<EditDeleteComponents v-if="activeComponent !== ''"/>
78
</q-card>
@@ -43,7 +44,7 @@ export default {
4344
4445
}
4546
.q-tab-panel {
46-
height: 100%;
47+
height: calc(100% - 30px);
4748
// matches the code editor bg
4849
background: $subprimary;
4950
// changes the length of the tab panels

src/components/home_sidebar_items/ComponentTab/EditDeleteComponents.vue

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,14 @@ export default {
168168
169169
// returns options for component multiselect
170170
options() {
171+
if (this.activeComponent !== '')
172+
this.newName = this.activeComponentObj.componentName;
173+
if (this.activeComponent !== ''){
174+
this.childrenSelected = [];
175+
this.childrenSelected = this.componentMap[this.activeComponent].children;
176+
} else {
177+
this.childrenSelected = [];
178+
}
171179
const compMap = this.componentMap;
172180
const activeComp = this.activeComponent;
173181
const val = this.activeRouteDisplay.map(
@@ -277,18 +285,6 @@ export default {
277285
},
278286
},
279287
mixins: [handleExportComponentMixin],
280-
watch: {
281-
// watches for changes in selected component, changes edit name text to newly selected component
282-
activeComponentObj: function () {
283-
if (this.activeComponentObj)
284-
this.newName = this.activeComponentObj.componentName;
285-
if (this.activeComponent !== ''){
286-
this.childrenSelected = this.componentMap[this.activeComponent].children;
287-
} else {
288-
this.childrenSelected = [];
289-
}
290-
},
291-
},
292288
};
293289
</script>
294290

src/components/home_sidebar_items/ComponentTab/ParentMultiselect.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ export default {
8989
:global(.multiselect__option) {
9090
color: $menutext;
9191
}
92+
:global(.multiselect__option--selected) {
93+
background-color: $accent;
94+
color: #155158;
95+
96+
}
9297
:global(.multiselect__single) {
9398
background-color: $subprimary;
9499
color: $menutext;

src/components/home_sidebar_items/ComponentTab/UploadImage.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ export default {
150150
height: 100%;
151151
margin: 1rem;
152152
font-size: 11px;
153+
153154
}
154155
155156
.file-header {
@@ -158,6 +159,7 @@ export default {
158159
159160
.file-content {
160161
padding: 0em 1em 1em 1em;
162+
161163
}
162164
163165
.browser-btn {

src/css/app.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ main {
4848
{
4949
width: 10px;
5050
background-color: $subsecondary;
51+
z-index: 15;
5152
}
5253

5354
::-webkit-scrollbar-track

src/layouts/MyLayout.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -281,27 +281,29 @@ q-btn > i {
281281
282282
.resizeDrag {
283283
position: absolute;
284-
left: -5px;
285-
top: 50vh;
284+
left: -20px;
285+
top: 50%;
286286
width: 20px;
287287
height: 40px;
288-
background-color: #202122;
288+
background-image: linear-gradient(to right, #202122 50%, rgba(255, 255, 255, 0) 50%);
289289
border-radius: 4px;
290+
border-top-right-radius: 0px;
291+
border-bottom-right-radius: 0px;
290292
z-index: 10;
291293
cursor: col-resize;
292294
}
293295
294296
.resizeDragTwo{
295297
position: absolute;
296-
left: calc(100vw - 10px);
297-
top: calc(50vh + 33.59px);
298-
width: 10px;
298+
left: calc(100vw - 20px);
299+
top: calc(50vh + 25px);
300+
width: 20px;
299301
height: 40px;
300-
background-color: #202122;
302+
background-image: linear-gradient(to right, #202122 50%, rgba(255, 255, 255, 0) 50%);
301303
border-radius: 4px;
302304
border-top-right-radius: 0px;
303305
border-bottom-right-radius: 0px;
304-
z-index: 10;
306+
z-index: 1;
305307
cursor: col-resize;
306308
}
307309

src/pages/Index2.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Description:
55
-->
66

77
<template>
8-
<q-page class="flex flex-center">
8+
<q-page class="flex flex-center" id="compDisplay">
99
<ComponentDisplay />
1010
</q-page>
1111
</template>
@@ -23,3 +23,12 @@ export default {
2323
}
2424
}
2525
</script>
26+
27+
<style scoped>
28+
#compDisplay{
29+
overflow-x: scroll;
30+
overflow-y: scroll;
31+
margin: 0px;
32+
padding: 0px;
33+
}
34+
</style>

0 commit comments

Comments
 (0)