mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for important
This commit is contained in:
@@ -1886,16 +1886,12 @@ body {
|
|||||||
|
|
||||||
#tooltip-text {
|
#tooltip-text {
|
||||||
content: attr(tooltip);
|
content: attr(tooltip);
|
||||||
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
transition: opacity 0s linear 0.5s;
|
transition: opacity 0s linear 0.5s;
|
||||||
border: 3px ridge grey;
|
|
||||||
width: 200px;
|
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
|
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
|
||||||
|
|
||||||
padding: 0px 2px;
|
padding: 0px 2px;
|
||||||
color: var(--tooltip_text);
|
color: var(--tooltip_text);
|
||||||
background-color: var(--tooltip_background);
|
background-color: var(--tooltip_background);
|
||||||
@@ -1904,10 +1900,16 @@ body {
|
|||||||
z-index: 9999999;
|
z-index: 9999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tooltip-standard {
|
||||||
|
border: 3px ridge grey;
|
||||||
|
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
.tooltip-context-token {
|
.tooltip-context-token {
|
||||||
border: none !important;
|
border: none;
|
||||||
font-family: monospace !important;
|
font-family: monospace;
|
||||||
max-width: min-content !important;
|
max-width: min-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -4996,7 +4996,7 @@ let load_substitutions;
|
|||||||
|
|
||||||
el.addEventListener("mouseenter", function(event) {
|
el.addEventListener("mouseenter", function(event) {
|
||||||
tooltip.innerText = text;
|
tooltip.innerText = text;
|
||||||
let specialClass = null;
|
let specialClass = "tooltip-standard";
|
||||||
|
|
||||||
// Kinda lame
|
// Kinda lame
|
||||||
if (this.classList.contains("context-token")) specialClass = "tooltip-context-token";
|
if (this.classList.contains("context-token")) specialClass = "tooltip-context-token";
|
||||||
|
Reference in New Issue
Block a user