Small cosmetic fixes

This commit is contained in:
Cohee 2024-12-09 15:26:57 +02:00
parent 3ed5d892f7
commit 323b9407df
2 changed files with 6 additions and 1 deletions

View File

@ -1780,7 +1780,7 @@
<span data-i18n="Sampler Order">Sampler Order</span>
<div class="margin5 fa-solid fa-circle-info opacity50p" title="Aphrodite only. Determines the order of samplers. Skew is always applied post-softmax, so it's not included here." data-i18n="[title]Aphrodite only. Determines the order of samplers. Skew is always applied post-softmax, so it's not included here."></div>
</h4>
<div class="toggle-description widthUnset" data-i18n="Aphrodite only. Determines the order of samplers. Skew is always applied post-softmax, so it's not included here.">
<div class="toggle-description widthUnset" data-i18n="Aphrodite only. Determines the order of samplers.">
Aphrodite only. Determines the order of samplers.
</div>
<div id="sampler_priority_container_aphrodite" class="prompt_order">

View File

@ -571,7 +571,12 @@ function sortOobaItemsByOrder(orderArray) {
});
}
/**
* Sorts the Aphrodite sampler items by the given order.
* @param {string[]} orderArray Sampler order array.
*/
function sortAphroditeItemsByOrder(orderArray) {
console.debug('Preset samplers order: ', orderArray);
const $container = $('#sampler_priority_container_aphrodite');
orderArray.forEach((name) => {