Skip to content

Commit 8461707

Browse files
committed
before soft revert
1 parent 83df989 commit 8461707

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/components/right-sidebar/CodeSnippet.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ export default {
7979
if (this.activeComponentObj.htmlAttributes.class !== "" && this.activeComponentObj.htmlAttributes.id !== "") {
8080
return `<template>\n <div id = "${this.activeComponentObj.htmlAttributes.id}" class = "${this.activeComponentObj.htmlAttributes.class}">\n${templateTagStr} </div>\n</template>`;
8181
} else if (this.activeComponentObj.htmlAttributes.class !== "" && this.activeComponentObj.htmlAttributes.id === "") {
82-
return `<template>\n <div class = "${this.activeComponentObj.htmlAttributes.class}">\n${templateTagStr} </div>\n</template>`;
82+
return `<template>\n <div class = "${this.activeComponentObj.htmlAttributes.class}">\n${templateTagStr} </div>\n</template>`;
8383
} else if (this.activeComponentObj.htmlAttributes.class === "" && this.activeComponentObj.htmlAttributes.id !== "")
84-
return `<template>\n <div id = "${this.activeComponentObj.htmlAttributes.id}">\n${templateTagStr} </div>\n</template>`;
85-
else return `<template>\n <div>\n${templateTagStr} </div>\n</template>`;
84+
return `<template>\n <div id = "${this.activeComponentObj.htmlAttributes.id}">\n${templateTagStr} </div>\n</template>`;
85+
else return `<template>\n <div>\n${templateTagStr} </div>\n</template>`;
8686
},
8787
// Creates <template> boilerplate
8888
writeTemplateTag(componentName) {
@@ -145,7 +145,7 @@ export default {
145145
146146
// Iterates through active component's HTML elements list and adds to code snippet
147147
let htmlArr = this.componentMap[componentName].htmlList;
148-
let outputStr = ``;
148+
let outputStr = ``
149149
// eslint-disable-next-line no-unused-vars
150150
for (const el of htmlArr) {
151151
if (!el.text) {
@@ -245,7 +245,7 @@ export default {
245245
let htmlArray = this.componentMap[componentName].htmlList;
246246
let styleString = "";
247247
248-
if(this.activeComponentObj.htmlAttributes.class !== "") {
248+
if (this.activeComponentObj.htmlAttributes.class !== "") {
249249
styleString += `.${this.activeComponentObj.htmlAttributes.class} {\nbackground-color: ${this.activeComponentObj.color};
250250
width: ${this.activeComponentObj.w}px;
251251
height: ${this.activeComponentObj.h}px;
@@ -351,15 +351,15 @@ z-index: ${this.activeComponentObj.z};
351351
}
352352
353353
.refreshCode {
354-
position:absolute;
355-
background-color:black;
354+
position: absolute;
355+
background-color: black;
356356
color: $secondary;
357-
bottom:96%;
358-
right:5%;
357+
bottom: 96%;
358+
right: 5%;
359359
}
360+
360361
.refreshCode:hover {
361-
cursor:pointer;
362+
cursor: pointer;
362363
}
363-
364364
</style>
365365

0 commit comments

Comments
 (0)