Lock extensions display order in top and context menus

This commit is contained in:
Cohee
2023-09-13 01:40:01 +03:00
parent c0e5d7efae
commit 09fc42a787
11 changed files with 105 additions and 9 deletions

View File

@@ -144,7 +144,7 @@ jQuery(function () {
const sendButton = $(`
<div id="send_picture" class="list-group-item flex-container flexGap5">
<div class="fa-solid fa-image extensionsMenuExtensionButton"></div>
Send a picture
Send a Picture
</div>`);
$('#extensionsMenu').prepend(sendButton);
@@ -171,7 +171,7 @@ jQuery(function () {
}
function addSettings() {
const html = `
<div class="background_settings">
<div class="caption_settings">
<div class="inline-drawer">
<div class="inline-drawer-toggle inline-drawer-header">
<b>Image Captioning</b>

View File

@@ -1,3 +1,7 @@
#img_form {
display: none;
}
#img_form {
display: none;
}
#send_picture {
order: 4;
}

View File

@@ -11,6 +11,7 @@
opacity: 0.7;
display: flex;
align-items: center;
order: 4;
/* justify-content: center; */
}

View File

@@ -50,3 +50,7 @@
margin: unset;
margin-bottom: 5px !important;
}
#objective-task-manual-check-menu-item {
order: 3;
}

View File

@@ -136,7 +136,7 @@ jQuery(() => {
</div>
</div>`;
$('#extensions_settings').append(html);
$('#extensions_settings2').append(html);
$('#ai_response_configuration .range-block-counter').each(addRandomizeButton);
$('#randomizer_enabled').on('input', onRandomizerEnabled);
$('#randomizer_enabled').prop('checked', extension_settings.randomizer.enabled).trigger('input');

View File

@@ -15,6 +15,7 @@
opacity: 0.7;
display: flex;
align-items: center;
order: 6;
/* justify-content: center; */
}

View File

@@ -0,0 +1,3 @@
#token_counter {
order: 2;
}

View File

@@ -4,3 +4,7 @@
gap: 10px;
flex-direction: row;
}
#translate_chat {
order: 7;
}

View File

@@ -16,6 +16,7 @@
}
#ttsExtensionMenuItem {
order: 1;
transition: 0.3s;
opacity: 0.7;
}