mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for pin/delete/redo icons on options in light colored themes
This commit is contained in:
@@ -1331,9 +1331,10 @@ body {
|
||||
margin: auto auto auto auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
color: var(--flyout_text);
|
||||
}
|
||||
|
||||
.delete_option_icon {
|
||||
.option_icon {
|
||||
font-size: 1.2em !important;
|
||||
}
|
||||
|
||||
|
@@ -317,10 +317,12 @@ function create_options(action) {
|
||||
iconcell.classList.add("sequnce_icon");
|
||||
var icon = document.createElement("span");
|
||||
icon.id = "Pin_"+i;
|
||||
icon.classList.add("oi");
|
||||
icon.setAttribute('data-glyph', "loop-circular");
|
||||
icon.classList.add("material-icons-outlined");
|
||||
icon.classList.add("option_icon");
|
||||
icon.classList.add("cursor");
|
||||
icon.textContent = "cached";
|
||||
iconcell.append(icon);
|
||||
delete_icon = $e("span", iconcell, {"classes": ["material-icons-outlined", "cursor", 'delete_option_icon'],
|
||||
delete_icon = $e("span", iconcell, {"classes": ["material-icons-outlined", "cursor", 'option_icon'],
|
||||
"tooltip": "Delete Option", 'option_id': i,
|
||||
'option_chunk': action.id, 'textContent': 'delete'});
|
||||
delete_icon.onclick = function () {
|
||||
@@ -353,8 +355,10 @@ function create_options(action) {
|
||||
iconcell.classList.add("sequnce_icon");
|
||||
var icon = document.createElement("span");
|
||||
icon.id = "Pin_"+i;
|
||||
icon.classList.add("oi");
|
||||
icon.setAttribute('data-glyph', "pin");
|
||||
icon.classList.add("material-icons-outlined");
|
||||
icon.classList.add("option_icon");
|
||||
icon.classList.add("cursor");
|
||||
icon.textContent = "push_pin";
|
||||
if (!(item.Pinned)) {
|
||||
icon.setAttribute('style', "filter: brightness(50%);");
|
||||
}
|
||||
|
Reference in New Issue
Block a user