Skip to content

Commit

Permalink
Merge pull request #1188 from DDMAL/debug-switch
Browse files Browse the repository at this point in the history
Add debug mode tooltip
  • Loading branch information
yinanazhou authored Feb 2, 2024
2 parents 1395c26 + 9d99f57 commit 3318272
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/img/debug-tooltip-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,32 @@ input[type=checkbox].debug-mode-toggle:checked+label:before {
top: 1px;
background-color: white;
}
.debug-mode-tooltip-container {
position: relative;
display: inline-block;
bottom: 10px;
left: 3px;
}

.debug-mode-tooltip-container .debug-mode-tooltiptext {
visibility: hidden;
background-color: #68A7AD;
color: #fff;
text-align: start;
border-radius: 6px;
padding: 10px;
position: absolute;
z-index: 10;
width: 200px;
top: 100%;
left: 50%;
margin-left: -50px;
opacity: 90%;
}

.debug-mode-tooltip-container:hover .debug-mode-tooltiptext {
visibility: visible;
}

/* Tov navbar styles styles for smaller devices */
@media screen and (max-width: 1023px) {
Expand Down
4 changes: 4 additions & 0 deletions assets/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@
<input type="checkbox" class="debug-mode-toggle" id="debug-mode-checkbox">
<label for="debug-mode-checkbox" data-checked="ON" data-unchecked="OFF" class="debug-mode-on"></label>
</div>
<div class="debug-mode-tooltip-container">
<img id="debug-mode-tooltip-icon" src="/Neon-gh/assets/img/debug-tooltip-light.svg">
<span class="debug-mode-tooltiptext">This feature is intended for developers and provides access to error history and detailed error log messages.</span>
</div>
</div>

<a class="navbar-element navbar-btn" id="feedback-form-btn-container" href="https://forms.gle/vGUpvZKZxGX5QGJZ9" target="_blank">
Expand Down

0 comments on commit 3318272

Please sign in to comment.