Small cosmetic fixes

323b9407df6433f4251a780bad549cb6ed2d640b

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +6 -1Ignore whitespace
public/index.html+1 -1
@@ -1780,7 +1780,7 @@
1780 <span data-i18n="Sampler Order">Sampler Order</span>1780 <span data-i18n="Sampler Order">Sampler Order</span>
1781 <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>1781 <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>
1782 </h4>1782 </h4>
1783 <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.">1783 <div class="toggle-description widthUnset" data-i18n="Aphrodite only. Determines the order of samplers.">
1784 Aphrodite only. Determines the order of samplers.1784 Aphrodite only. Determines the order of samplers.
1785 </div>1785 </div>
1786 <div id="sampler_priority_container_aphrodite" class="prompt_order">1786 <div id="sampler_priority_container_aphrodite" class="prompt_order">
public/scripts/textgen-settings.js+5 -0
@@ -571,7 +571,12 @@ function sortOobaItemsByOrder(orderArray) {
571 });571 });
572}572}
573573
574/**
575 * Sorts the Aphrodite sampler items by the given order.
576 * @param {string[]} orderArray Sampler order array.
577 */
574function sortAphroditeItemsByOrder(orderArray) {578function sortAphroditeItemsByOrder(orderArray) {
579 console.debug('Preset samplers order: ', orderArray);
575 const $container = $('#sampler_priority_container_aphrodite');580 const $container = $('#sampler_priority_container_aphrodite');
576581
577 orderArray.forEach((name) => {582 orderArray.forEach((name) => {