Fix open drawer sizing issues in Firefox

This commit is contained in:
Cohee 2024-09-08 23:41:26 +03:00
parent 1c421cc117
commit 75e279091c

View File

@ -10747,7 +10747,11 @@ jQuery(async function () {
var icon = $(this).find('.inline-drawer-icon');
icon.toggleClass('down up');
icon.toggleClass('fa-circle-chevron-down fa-circle-chevron-up');
$(this).closest('.inline-drawer').find('.inline-drawer-content').stop().slideToggle();
$(this).closest('.inline-drawer').find('.inline-drawer-content').stop().slideToggle({
complete: () => {
$(this).css('height', '');
},
});
// Set the height of "autoSetHeight" textareas within the inline-drawer to their scroll height
if (!CSS.supports('field-sizing', 'content')) {