mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Auto-hide instruct sequences in <details>
This commit is contained in:
@ -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'));
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user