Skip to content

Commit 452a021

Browse files
Working on component display
Co-authored By: Faraz Moallemi [email protected]
1 parent af9faa5 commit 452a021

File tree

1 file changed

+33
-8
lines changed

1 file changed

+33
-8
lines changed

src/components/ComponentDisplay.vue

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,17 @@ Description:
3333
<div class="component-title">
3434
<p>{{ componentData.componentName }}</p>
3535
</div>
36-
<p> Elements in Component: </p>
37-
<p
38-
v-for="htmlElement in componentMap[componentData.componentName]
39-
.htmlList"
40-
:key="htmlElement"
41-
>
42-
{{ htmlElement.text }}
43-
</p>
36+
<div class="component-html-info">
37+
<p>Elements in Component:</p>
38+
<p
39+
class="list-of-elements"
40+
v-for="htmlElement in componentMap[componentData.componentName]
41+
.htmlList"
42+
:key="htmlElement"
43+
>
44+
{{ htmlElement.text }}
45+
</p>
46+
</div>
4447
<q-menu context-menu>
4548
<q-list color="black" class="menu">
4649
<q-item clickable v-ripple v-close-popup @click="handleAddChild">
@@ -393,6 +396,28 @@ export default {
393396
line-height: 1.2;
394397
z-index: -1;
395398
}
399+
/* .component-html-info {
400+
position: relative;
401+
font-size: 16px;
402+
top: -18px;
403+
left: 2px;
404+
color: black;
405+
-webkit-text-stroke: 0.4px white;
406+
font-weight: 800;
407+
line-height: 1.2;
408+
z-index: -1;
409+
} */
410+
.component-html-info {
411+
display: flex;
412+
/* flex-basis: auto; */
413+
flex-direction: column;
414+
/* flex-wrap: wrap; */
415+
/* justify-content: center; */
416+
/* flex-flow: column wrap; */
417+
/* align-content: stretch; */
418+
/* align-items: flex-start; */
419+
font-weight: 800;
420+
}
396421
.component-children {
397422
position: relative;
398423
top: 0rem;

0 commit comments

Comments
 (0)