Skip to content

Commit 96a991b

Browse files
committed
left dropdown menu delete fixed
2 parents b26b5dd + f4ad370 commit 96a991b

File tree

5 files changed

+24
-14
lines changed

5 files changed

+24
-14
lines changed

src/components/ComponentDisplay.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<li>children: {{ componentMap[componentData.componentName].children }}</li>
2424
<!-- <p v-for="child in childList" :key="childList.indexOf(child)"> {{ child.text }}</p> -->
2525
</ul>
26-
<q-menu context-menu>
27-
<q-list>
26+
<q-menu context-menu >
27+
<q-list class="menu">
2828
<q-item clickable v-ripple v-close-popup @click="handleAddChild">
2929
<q-item-section>Add Children</q-item-section>
3030
<q-item-section avatar><q-icon color="primary" name="add"/></q-item-section>
@@ -78,6 +78,7 @@ export default {
7878
window.addEventListener('keyup', event => {
7979
if (event.key === 'Backspace') {
8080
if (this.activeComponent && this.activeComponentData.isActive) {
81+
// console.log('this:', this)
8182
this.$store.dispatch('deleteActiveComponent')
8283
}
8384
}
@@ -215,6 +216,9 @@ export default {
215216
#269;
216217
behavior: url(/pie/PIE.htc);
217218
}
219+
.menu {
220+
margin-bottom: 0px !important;
221+
}
218222
.component-box {
219223
color: white;
220224
border: 1.2px dashed rgb(231, 203, 75);

src/components/Footer.vue

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<q-footer reveal class="gradient text-white" :style="{ height: `${height}vh` }">
3-
<q-toolbar>
3+
<q-toolbar class="toolbar-background">
44
<q-btn flat color="subaccent" round @click="openBottomDrawer">
55
<i :class="[open ? down : up]" id="btn" ></i>
66
</q-btn>
@@ -90,7 +90,7 @@ i {
9090
transition-timing-function: ease-in;
9191
transition: 0.2s;
9292
// background: #313131;
93-
background: black;
93+
background: #272822;
9494
}
9595
// changes the footer toolbar height
9696
.q-toolbar {
@@ -106,9 +106,9 @@ i {
106106
// this class selector does not change anything
107107
.q-tab__label {
108108
// font-size not changing
109-
font-size: 10px !important;
110-
line-height: 1.718em;
111-
font-weight: 500;
109+
font-size: 10px !important;
110+
line-height: 1.718em;
111+
font-weight: 500;
112112
}
113113
// changes the tab label styling
114114
#label-text {
@@ -129,7 +129,11 @@ i {
129129
.q-tabs {
130130
background: #11120F;
131131
}
132+
.toolbar-background {
133+
background: black;
134+
}
132135
.full-footer {
133-
height: 100vh;
136+
// height: 100vh;
137+
padding-bottom: 0px;
134138
}
135139
</style>

src/components/HomeSideDropDownItems/ComponentList.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,16 @@ export default {
4444
}
4545
},
4646
methods: {
47-
...mapActions(['setActiveComponent','deleteComponent']),
47+
...mapActions(['setActiveComponent','deleteComponent', 'deleteActiveComponent']),
4848
onActivated (componentData) {
4949
this.setActiveComponent(componentData.componentName)
5050
this.activeComponentData.isActive = true
5151
},
5252
handleClick (componentData) {
53-
this.deleteComponent(componentData)
54-
this.setActiveComponent('')
53+
54+
this.setActiveComponent(componentData.componentName)
55+
this.deleteActiveComponent(componentData.componentName)
56+
5557
}
5658
}
5759
}

src/components/Tree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default {
9191
/* changes the stroke color */
9292
.treeclass .linktree {
9393
stroke: $secondary !important;
94-
stroke-opacity: 1;
94+
stroke-opacity: 0.4;
9595
stroke-width: 8px;
9696
}
9797
</style>

src/layouts/MyLayout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<i :class="[left ? 'fas fa-chevron-left' : 'fas fa-list-ul']" id="btn" ></i>
77
</q-btn>
88
<q-toolbar-title>
9-
<q-avatar></q-avatar>PreVue 2.0
9+
<!-- <q-avatar></q-avatar> -->
10+
PreVue 2.0
1011
</q-toolbar-title>
1112
<OpenProjectComponent />
1213
<SaveProjectComponent />
@@ -61,7 +62,6 @@ export default {
6162
<style lang="stylus">
6263
.q-layout {
6364
transition-timing-function: ease-in;
64-
transition: 0.2s;
6565
}
6666
.export-btn {
6767
margin-left: 0.3rem;

0 commit comments

Comments
 (0)