Auto-hide instruct sequences in <details>

This commit is contained in:
Cohee
2024-09-22 19:15:24 +03:00
parent 9d0ffc2d0d
commit bcc4914467
3 changed files with 112 additions and 83 deletions

View File

@ -682,4 +682,12 @@ jQuery(() => {
selectMatchingContextTemplate(name);
}
});
if (!CSS.supports('field-sizing', 'content')) {
$('#InstructSequencesColumn details').on('toggle', function () {
if ($(this).prop('open')) {
resetScrollHeight($(this).find('textarea'));
}
});
}
});