Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug mode tooltip #1188

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading