Skip to content

Commit c3847b2

Browse files
committed
feat(deployment): added tooltips for different buttons in deployment
1 parent b900fab commit c3847b2

File tree

1 file changed

+38
-9
lines changed

1 file changed

+38
-9
lines changed

nebula/frontend/templates/deployment.html

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -410,27 +410,27 @@ <h5 class="step-title">Aggregation algorithm</h5>
410410
</div>
411411
<button id="next-btn" type="button" class="btn btn-dark" style="margin-top: 10px; display: none;">&gt;
412412
</button>
413-
<button id="new-btn" type="button" class="btn btn-dark" style="margin-top: 10px; display: none;">
413+
<button id="new-btn" title="Add new Scenario" type="button" class="btn btn-dark" style="margin-top: 10px; display: none;">
414414
<i class="fa fa-plus" aria-hidden="true"></i>
415415
</button>
416-
<button id="add-btn" type="button" class="btn btn-dark" style="margin-top: 10px;">
416+
<button id="add-btn" title="Save scenario" type="button" class="btn btn-dark" style="margin-top: 10px;">
417417
<i class="fa fa-floppy-o" aria-hidden="true"></i>
418418
</button>
419419
<button id="del-btn" type="button" class="btn btn-dark" style="margin-top: 10px; background-color: red; border-color: red; display: none;">
420420
<i class="fa fa-trash" aria-hidden="true"></i>
421421
</button>
422-
<button id="run-btn" type="button" class="btn btn-dark"
423-
style="margin-top: 10px; margin-left: 15px; float: right" disabled="true">Run
424-
NEBULA
422+
<button id="run-btn" type="button" class="btn btn-dark" style="margin-top: 10px; margin-left: 15px; float: right" disabled="true">
423+
Run NEBULA
425424
</button>
426-
<button id="load-config-btn" type="button" class="btn btn-dark" style="margin-top: 10px; margin-left: 5px; float: right">
425+
<button id="load-config-btn" title="Load config button" type="button" class="btn btn-dark" style="margin-top: 10px; margin-left: 5px; float: right">
427426
<i class="fa fa-upload" aria-hidden="true"></i>
428427
</button>
429-
<button id="save-config-btn" type="button" class="btn btn-dark" style="margin-top: 10px; margin-left: 5px; float: right">
428+
<button id="save-config-btn" title="Save config button" type="button" class="btn btn-dark" style="margin-top: 10px; margin-left: 5px; float: right">
430429
<i class="fa fa-download" aria-hidden="true"></i>
431430
</button>
432-
<button id="open-gen-modal-btn" type="button" class="btn btn-dark"
433-
style="margin-top: 10px; margin-left: 5px; float: right;"><i class="fa fa-list-ul" aria-hidden="true"></i></button>
431+
<button id="open-gen-modal-btn" title="Scenario generation" type="button" class="btn btn-dark" style="margin-top: 10px; margin-left: 5px; float: right;">
432+
<i class="fa fa-list-ul" aria-hidden="true"></i>
433+
</button>
434434
</div>
435435
<div id="expert-container" class="col-md-12 " style="display: none">
436436
<div class="form-group row container-shadow tiny grey">
@@ -773,6 +773,35 @@ <h5 class="step-title">Schema of deployment</h5>
773773
content: "\f09c";
774774
}
775775

776+
/* Tooltips */
777+
button[title] {
778+
position: relative;
779+
}
780+
781+
button[title]:hover::after {
782+
content: attr(title);
783+
position: absolute;
784+
top: -35px;
785+
left: 50%;
786+
transform: translateX(-50%);
787+
background-color: rgba(0, 0, 0, 0.8);
788+
color: white;
789+
padding: 8px 12px;
790+
border-radius: 6px;
791+
font-size: 14px;
792+
white-space: nowrap;
793+
z-index: 1000;
794+
opacity: 0;
795+
pointer-events: none;
796+
transition: opacity 0.3s ease, top 0.3s ease;
797+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
798+
}
799+
800+
button[title]:hover::after {
801+
opacity: 1;
802+
top: -50px;
803+
}
804+
776805
#expert-container .step-number::before {
777806
background-color: #3333338a;
778807
color: #fff;

0 commit comments

Comments
 (0)