Skip to content

Commit d9fdb00

Browse files
committed
updated
1 parent 9bc5aaf commit d9fdb00

File tree

2 files changed

+45
-3
lines changed

2 files changed

+45
-3
lines changed

src/components/right-sidebar/CodeSnippet.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default {
129129
} else {
130130
nestedString +=
131131
htmlElementMap[child.text][0] +
132-
htmlElementMap[child.text][1] +
132+
htmlElementMap[child.text][1] +
133133
"\n";
134134
}
135135
}

src/components/right-sidebar/HTMLQueue.vue

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,22 @@ Description:
1212
<hr>
1313
</span>
1414
<span class='list-title' v-else-if='!this.activeComponent'></span>
15-
<div
15+
<div
1616
group="people"
1717
class="list-group"
1818
>
1919
<p v-if='!this.componentMap[this.activeComponent]?.htmlList.length'>No HTML elements in component</p>
20-
<div
20+
<div id="tooltipCon"
2121
:class="activeHTML === element[2] ? 'list-group-item-selected' : 'list-group-item'"
2222
@dblclick.self="setActiveElement(element)"
2323
v-for="(element) in renderList" :key="element[1] + Date.now()"
2424
>
25+
2526
<i v-if='activeComponent === "" || exceptions.includes(element[0]) '></i>
2627
<i v-else class="fas fa fa-angle-double-down fa-md" @click="setLayer({text: element[0], id: element[2]})"></i>
2728
{{ element[0] }}
2829
<i class="fas fa fa-trash fa-md" @click.self="deleteElement([element[1],element[2]])"></i>
30+
<div class="tooltip"> Edit {{element[0]}} attributes </div>
2931
</div>
3032

3133
</div>
@@ -191,4 +193,44 @@ li {
191193
hr {
192194
border: 1px solid grey
193195
}
196+
197+
198+
#tooltipCon {
199+
position: relative;
200+
cursor: pointer;
201+
}
202+
203+
204+
205+
.tooltip {
206+
visibility: hidden;
207+
z-index: 1;
208+
opacity: .40;
209+
210+
width: 100%;
211+
212+
background: rgba(223, 215, 215, 0.774);
213+
color: black;
214+
215+
position: absolute;
216+
// top:-140%;
217+
top:-50%;
218+
219+
220+
border-radius: 9px;
221+
transform: translateY(9px);
222+
transition: all 0.3s ease-in-out;
223+
box-shadow: 0 0 3px rgba(56, 54, 54, 0.86);
224+
}
225+
226+
227+
#tooltipCon:hover .tooltip{
228+
visibility: visible;
229+
transform: translateY(-10px);
230+
opacity: 1;
231+
transition: .3s linear;
232+
animation: odsoky 1s ease-in-out infinite alternate;
233+
234+
}
235+
194236
</style>

0 commit comments

Comments
 (0)