Add user icon for user prompts
To be consistent with global and marker icons
This commit is contained in:
parent
bc4befeb22
commit
405a680059
|
@ -29,14 +29,10 @@
|
||||||
display: inline !important;
|
display: inline !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#completion_prompt_manager #completion_prompt_manager_list .completion_prompt_manager_marker .fa-thumb-tack {
|
#completion_prompt_manager #completion_prompt_manager_list .completion_prompt_manager_prompt .completion_prompt_manager_prompt_name .fa-solid {
|
||||||
padding: 0 0.5em;
|
padding: 0 0.5em;
|
||||||
color: var(--white50a);
|
color: var(--white50a);
|
||||||
}
|
}
|
||||||
#completion_prompt_manager #completion_prompt_manager_list .completion_prompt_manager_prompt_name .fa-globe {
|
|
||||||
padding: 0 0.4em;
|
|
||||||
color: var(--white50a);
|
|
||||||
}
|
|
||||||
|
|
||||||
#completion_prompt_manager #completion_prompt_manager_list .completion_prompt_manager_prompt_invisible {
|
#completion_prompt_manager #completion_prompt_manager_list .completion_prompt_manager_prompt_invisible {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
|
@ -703,7 +703,7 @@ PromptManagerModule.prototype.isPromptEditAllowed = function (prompt) {
|
||||||
* @returns {boolean} True if the prompt can be deleted, false otherwise.
|
* @returns {boolean} True if the prompt can be deleted, false otherwise.
|
||||||
*/
|
*/
|
||||||
PromptManagerModule.prototype.isPromptToggleAllowed = function (prompt) {
|
PromptManagerModule.prototype.isPromptToggleAllowed = function (prompt) {
|
||||||
return !this.configuration.toggleDisabled.includes(prompt.identifier);
|
return prompt.marker ? false : !this.configuration.toggleDisabled.includes(prompt.identifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1249,23 +1249,18 @@ PromptManagerModule.prototype.renderPromptManagerListItems = function () {
|
||||||
<span class="${prefix}prompt_manager_prompt_name" data-pm-name="${prompt.name}">
|
<span class="${prefix}prompt_manager_prompt_name" data-pm-name="${prompt.name}">
|
||||||
${prompt.marker ? '<span class="fa-solid fa-thumb-tack" title="Prompt Marker"></span>' : ''}
|
${prompt.marker ? '<span class="fa-solid fa-thumb-tack" title="Prompt Marker"></span>' : ''}
|
||||||
${!prompt.marker && prompt.system_prompt ? '<span class="fa-solid fa-globe" title="Global Prompt"></span>' : ''}
|
${!prompt.marker && prompt.system_prompt ? '<span class="fa-solid fa-globe" title="Global Prompt"></span>' : ''}
|
||||||
|
${!prompt.marker && !prompt.system_prompt ? '<span class="fa-solid fa-user" title="User Prompt"></span>' : ''}
|
||||||
${prompt.name}
|
${prompt.name}
|
||||||
</span>
|
</span>
|
||||||
${prompt.marker
|
<span>
|
||||||
? `<span>
|
|
||||||
<span class="prompt_manager_prompt_controls">
|
|
||||||
<span></span>
|
|
||||||
${inspectSpanHtml}
|
|
||||||
</span>
|
|
||||||
</span>`
|
|
||||||
: `<span>
|
|
||||||
<span class="prompt_manager_prompt_controls">
|
<span class="prompt_manager_prompt_controls">
|
||||||
${detachSpanHtml}
|
${detachSpanHtml}
|
||||||
${editSpanHtml}
|
${editSpanHtml}
|
||||||
|
${inspectSpanHtml}
|
||||||
${toggleSpanHtml}
|
${toggleSpanHtml}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
`}
|
|
||||||
<span class="prompt_manager_prompt_tokens" data-pm-tokens="${calculatedTokens}"><span class="${warningClass}" title="${warningTitle}"> </span>${calculatedTokens}</span>
|
<span class="prompt_manager_prompt_tokens" data-pm-tokens="${calculatedTokens}"><span class="${warningClass}" title="${warningTitle}"> </span>${calculatedTokens}</span>
|
||||||
</li>
|
</li>
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Reference in New Issue