Skip to content

Commit d4c8219

Browse files
Merge pull request #28 from oslabs-beta/megan/layerBugFix
Layer bug fix and styling updates
2 parents 20807bf + fdc04b1 commit d4c8219

File tree

16 files changed

+95
-85
lines changed

16 files changed

+95
-85
lines changed

src/components/ComponentDisplay.vue

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,16 @@
135135
></q-input>
136136
<q-btn
137137
id="comp-btn"
138+
class="sidebar-btn"
138139
color="secondary"
139140
label="Submit Note"
140141
:disable="noteText.length > 0 ? false : true"
141142
@click="submitNote"
142143
/>
143144
<q-btn
144145
id="note-btn-close"
145-
label="Exit Notes"
146+
class="sidebar-btn closeAction"
147+
label="Close"
146148
@click="this.openNoteModal"
147149
/>
148150
</q-form>
@@ -446,7 +448,7 @@ export default {
446448
z: this.activeComponentData.z,
447449
};
448450
if (e.target.innerText === "+") payload.z++;
449-
if (e.target.innerText === "-" && payload.z > 0) payload.z--;
451+
if (e.target.innerText === "" && payload.z > 0) payload.z--;
450452
this.updateComponentLayer(payload);
451453
},
452454
// if user clicks on display grid, resets active component to ''
@@ -511,7 +513,7 @@ li:hover{
511513
margin-right: 10px;
512514
}
513515
.noteBox{
514-
background-color: $subprimary;
516+
background-color: $subsecondary;
515517
color: $menutext;
516518
width: 65%;
517519
padding: 15px;
@@ -524,7 +526,7 @@ li:hover{
524526
#noteDelete{
525527
background-color: $secondary;
526528
width: 20px;
527-
height: 20px;
529+
min-height: 42px;
528530
display: flex;
529531
justify-content: center;
530532
align-self: flex-end;
@@ -666,7 +668,7 @@ li:hover{
666668
position: absolute;
667669
}
668670
.active {
669-
background-color: $accent;
671+
background-color: rgba($secondary, .42);
670672
border: 1px dashed $accent;
671673
}
672674
.minorAction {
@@ -708,9 +710,6 @@ li:hover{
708710
}
709711
710712
#note-btn-close {
711-
background-color: rgba($negative, .2);
712-
border: 1px solid $negative;
713-
color: $negative;
714713
width: 100%;
715714
margin-top: 10px;
716715
margin-bottom: 10px;

src/components/dashboard_items/ComponentDetails.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Description:
99

1010
<template>
1111
<div class="inner-div">
12-
<q-card id="store-cards" v-if="this.activeComponentObj">
12+
<q-card id="store-cards" class="no-shadow" v-if="this.activeComponentObj">
1313
<q-tabs
1414
v-model="tab"
1515
dense
@@ -142,7 +142,7 @@ i {
142142
.q-tab-panel {
143143
height: 100%;
144144
background: $subprimary;
145-
padding-top: 20px;
145+
padding-top: 20px !important;
146146
}
147147
148148
// changes the length of the tab panels

src/components/dashboard_items/Dashboard.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ export default {
167167
height: 100%;
168168
border-radius: 0px;
169169
background: $subprimary;
170-
padding: 16px;
171170
}
172171
173172
.inner-div {

src/components/dashboard_items/HTMLQueue.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ Description:
99
<span class='list-title' v-if='this.activeLayer.id !== ""'>
1010
<i class="fas fa fa-chevron-up fa-md" @click="setParentLayer"></i>
1111
<!-- <button v-if='this.activeLayer.id' @click="upOneLayer">Up</button> -->
12-
&nbsp; &nbsp; Viewing Elements in '{{ depth }}'
12+
&nbsp; &nbsp; Viewing Elements in '{{ depth }}'
13+
<hr>
1314
</span>
1415
<span class='list-title' v-else-if='!this.activeComponent'></span>
15-
<hr>
1616
<div
1717
group="people"
1818
class="list-group"

src/components/dashboard_items/RouteDisplay.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Includes functionality to:
1919
class="input-add"
2020
@click="resetActiveComponent"
2121
reactive-rules
22-
:rules="[val => !Object.keys(this.componentMap).includes(val) || 'A component with this name already exists' ]"
22+
:rules="[val => !Object.keys(this.componentMap).includes(val) || 'A component/route with this name already exists' ]"
2323
>
2424
<template v-slot:append>
2525
<q-btn
@@ -82,7 +82,6 @@ export default {
8282
<style scoped>
8383
.route-display {
8484
overflow: auto;
85-
padding: 1rem;
8685
}
8786
8887
i:hover {

src/components/dashboard_items/Routes.vue

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,17 @@ Description:
1313
@click="selectRoute(route)"
1414
>
1515
<q-list bordered separator class="list-item">
16-
<q-item clickable v-ripple :class="route === activeRoute ? 'panel-block is-active list-item' : 'panel-block list-item'">
17-
<q-item-section>{{route}}</q-item-section>
18-
<span v-if="route !== 'HomeView'">
19-
<q-btn round flat icon="highlight_off" v-on:click.stop="deleteSelectedRoute(route)" />
20-
</span>
16+
<q-item clickable dense v-ripple :class="route === activeRoute ? 'panel-block is-active list-item' : 'panel-block list-item'">
17+
<q-item-section>
18+
<div class="block-container">
19+
<div class="block-info">
20+
{{route}}
21+
</div>
22+
<span v-if="route !== 'HomeView'">
23+
<q-btn round flat icon="highlight_off" v-on:click.stop="deleteSelectedRoute(route)" />
24+
</span>
25+
</div>
26+
</q-item-section>
2127
</q-item>
2228
</q-list>
2329
</a>
@@ -47,9 +53,11 @@ export default {
4753
</script>
4854

4955
<style lang="scss" scoped>
56+
5057
.panel-block {
5158
background: $secondary !important;
52-
color: $menutext !important;;
59+
color: $menutext !important;
60+
min-height: 45px;
5361
}
5462
.is-active {
5563
background: $secondary !important;

src/components/dashboard_items/tutorial/Landing.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
@click="nextTab"
1010
/>
1111
<q-btn
12-
class="tut-btn"
13-
id="closeTutorialButton"
12+
class="tut-btn closeAction"
1413
label="Close Tutorial"
1514
@click="toggleTutorial"
1615
/>
@@ -52,10 +51,4 @@ export default {
5251
height: auto;
5352
}
5453
55-
#closeTutorialButton {
56-
background-color: $subprimary;
57-
color: $menutext;
58-
border: 1px solid $menutext;
59-
}
60-
6154
</style>

src/components/file_system_interface/ExportProject.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -522,11 +522,8 @@ export default {
522522
};
523523
</script>
524524
525-
<style>
526-
.nav-btn {
527-
min-height: 30px !important;
528-
text-transform: capitalize;
529-
}
525+
<style scoped>
526+
530527
.center{
531528
display:inline-block;
532529
text-align: center;

src/components/home_sidebar_items/ComponentTab/ComponentTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- Component Tab Container that holds components for creating components, editing and deleting, and adding props.
22
Functionality includes: if active component is selected, will switch view to editing mode. If not, it will be in create mode -->
33
<template>
4-
<q-card id="store-cards">
4+
<q-card id="store-cards" class="no-shadow">
55
<CreateComponent v-if="activeComponent === ''"/>
66
<EditDeleteComponents v-if="activeComponent !== ''"/>
77
</q-card>

src/components/home_sidebar_items/ComponentTab/CreateComponent.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Description:
2727
class="input-add"
2828
no-error-icon
2929
reactive-rules
30-
:rules="[ val => val.length != 0 || 'Please set a component name', val => !Object.keys(this.componentMap).includes(val) || 'A component with this name already exists' ]"
30+
:rules="[ val => val.length != 0 || 'Please set a component name', val => !Object.keys(this.componentMap).includes(val) || 'A component/route with this name already exists' ]"
3131
></q-input>
3232
</form>
3333

@@ -49,6 +49,7 @@ Description:
4949

5050
<q-btn
5151
id="create-component-btn"
52+
class="sidebar-btn"
5253
v-if="activeComponent === ''"
5354
color="secondary"
5455
label="Create Component"
@@ -180,6 +181,7 @@ export default {
180181
flex-direction: column;
181182
justify-content: flex-start;
182183
align-items: stretch;
184+
margin: 4px;
183185
}
184186
.create-component-form {
185187
display: flex;

0 commit comments

Comments
 (0)