mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Use CSS.supports to determine auto-fit validity
This commit is contained in:
@ -1491,9 +1491,11 @@ function select_group_chats(groupId, skipAnimation) {
|
||||
}
|
||||
|
||||
// Toggle textbox sizes, as input events have not fired here
|
||||
$('#rm_group_chats_block .autoSetHeight').each(element => {
|
||||
resetScrollHeight(element);
|
||||
});
|
||||
if (!CSS.supports('field-sizing', 'content')) {
|
||||
$('#rm_group_chats_block .autoSetHeight').each(element => {
|
||||
resetScrollHeight(element);
|
||||
});
|
||||
}
|
||||
|
||||
eventSource.emit('groupSelected', { detail: { id: openGroupId, group: group } });
|
||||
}
|
||||
@ -1965,7 +1967,9 @@ function doCurMemberListPopout() {
|
||||
|
||||
jQuery(() => {
|
||||
$(document).on('input', '#rm_group_chats_block .autoSetHeight', function () {
|
||||
resetScrollHeight($(this));
|
||||
if (!CSS.supports('field-sizing', 'content')) {
|
||||
resetScrollHeight($(this));
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('click', '.group_select', function () {
|
||||
|
Reference in New Issue
Block a user