Skip to content

Commit df60e51

Browse files
authored
Merge pull request #14 from oslabs-beta/bryan/mockupImageFix
mockup image no longer scales with window scroll, drawer changes, etc…
2 parents 3763414 + 19cd9e0 commit df60e51

File tree

7 files changed

+34
-15
lines changed

7 files changed

+34
-15
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
@@ -128,10 +128,9 @@ i {
128128
}
129129
130130
.home-sidebar {
131-
margin: 1rem;
131+
padding: 1rem;
132132
justify-content: center;
133133
border-radius: 5px;
134-
padding: 0px;
135134
background: $subsecondary;
136135
}
137136

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/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
@@ -41,6 +41,7 @@ main {
4141
{
4242
width: 10px;
4343
background-color: $subsecondary;
44+
z-index: 15;
4445
}
4546

4647
::-webkit-scrollbar-track

src/layouts/MyLayout.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -275,27 +275,29 @@ q-btn > i {
275275
276276
.resizeDrag {
277277
position: absolute;
278-
left: -5px;
279-
top: 50vh;
278+
left: -20px;
279+
top: 50%;
280280
width: 20px;
281281
height: 40px;
282-
background-color: #202122;
282+
background-image: linear-gradient(to right, #202122 50%, rgba(255, 255, 255, 0) 50%);
283283
border-radius: 4px;
284+
border-top-right-radius: 0px;
285+
border-bottom-right-radius: 0px;
284286
z-index: 10;
285287
cursor: col-resize;
286288
}
287289
288290
.resizeDragTwo{
289291
position: absolute;
290-
left: calc(100vw - 10px);
291-
top: calc(50vh + 33.59px);
292-
width: 10px;
292+
left: calc(100vw - 20px);
293+
top: calc(50vh + 25px);
294+
width: 20px;
293295
height: 40px;
294-
background-color: #202122;
296+
background-image: linear-gradient(to right, #202122 50%, rgba(255, 255, 255, 0) 50%);
295297
border-radius: 4px;
296298
border-top-right-radius: 0px;
297299
border-bottom-right-radius: 0px;
298-
z-index: 10;
300+
z-index: 1;
299301
cursor: col-resize;
300302
}
301303

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)