From 9d99f571752cdee71fdfae7cb0cf3aad4aab9239 Mon Sep 17 00:00:00 2001 From: Yinan Zhou Date: Thu, 1 Feb 2024 19:32:27 -0500 Subject: [PATCH] Add debug mode tooltip --- assets/img/debug-tooltip-light.svg | 4 ++++ assets/style.css | 26 ++++++++++++++++++++++++++ assets/template.html | 4 ++++ 3 files changed, 34 insertions(+) create mode 100644 assets/img/debug-tooltip-light.svg diff --git a/assets/img/debug-tooltip-light.svg b/assets/img/debug-tooltip-light.svg new file mode 100644 index 00000000..30d3bb6b --- /dev/null +++ b/assets/img/debug-tooltip-light.svg @@ -0,0 +1,4 @@ + + + + diff --git a/assets/style.css b/assets/style.css index 6a2f4227..c404995e 100644 --- a/assets/style.css +++ b/assets/style.css @@ -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) { diff --git a/assets/template.html b/assets/template.html index 19ca9e86..ff737fc2 100644 --- a/assets/template.html +++ b/assets/template.html @@ -103,6 +103,10 @@ +
+ + This feature is intended for developers and provides access to error history and detailed error log messages. +