Skip to content

Commit bd19df5

Browse files
committed
show question id on hover
1 parent ea5fea2 commit bd19df5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

app/pods/components/question-container/template.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="font-mds mb-4">Question {{this.index}}</div>
1+
<div class="font-mds mb-4 question-parent">Question {{this.index}} <span class="question-child">{{question.id}}</span></div>
22
<div class="font-sm bold word-wrap">
33
{{markdown-to-html question.description}}
44
</div>

app/styles/app.scss

+8
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,14 @@ body{
268268
width: 100vw;
269269
}
270270

271+
.question-child {
272+
display: none;
273+
}
274+
275+
.question-parent:hover .question-child {
276+
display: inline-block;
277+
}
278+
271279
// Animations
272280

273281
@keyframes dots {

0 commit comments

Comments
 (0)