Add ability to maximize floating drawers (logprobs, A/N, CFG)

This commit is contained in:
Cohee
2024-03-18 02:12:23 +02:00
parent c393dac2e4
commit f18733266d
4 changed files with 38 additions and 4 deletions

View File

@@ -9790,6 +9790,12 @@ jQuery(async function () {
});
});
$(document).on('click', '.inline-drawer-maximize', function () {
const icon = $(this).find('.inline-drawer-icon, .floating_panel_maximize');
icon.toggleClass('fa-window-maximize fa-window-restore');
$(this).closest('.drawer-content').toggleClass('maximized');
});
$(document).on('click', '.mes .avatar', function () {
const messageElement = $(this).closest('.mes');
const thumbURL = $(this).children('img').attr('src');