Make logprobs draggable, fix conflicts between moving UI and maximization, fix z-fighting

This commit is contained in:
Cohee
2024-03-19 01:40:02 +02:00
parent c8f84bd413
commit 5b7b06aba8
6 changed files with 40 additions and 7 deletions

View File

@@ -81,6 +81,7 @@ import {
switchSimpleMode,
flushEphemeralStoppingStrings,
context_presets,
resetMovableStyles,
} from './scripts/power-user.js';
import {
@@ -9793,7 +9794,10 @@ 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');
const drawerContent = $(this).closest('.drawer-content');
drawerContent.toggleClass('maximized');
const drawerId = drawerContent.attr('id');
resetMovableStyles(drawerId);
});
$(document).on('click', '.mes .avatar', function () {