From 6e250eafcdbb2a126e9b7451caf6ef4ef5841ae4 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 8 Apr 2024 15:18:08 +0300 Subject: [PATCH] Fix shrunken group wrapper controls --- public/scripts/group-chats.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/scripts/group-chats.js b/public/scripts/group-chats.js index c7a853baa..36f324b94 100644 --- a/public/scripts/group-chats.js +++ b/public/scripts/group-chats.js @@ -10,6 +10,7 @@ import { PAGINATION_TEMPLATE, getBase64Async, resetScrollHeight, + initScrollHeight, } from './utils.js'; import { RA_CountCharTokens, humanizedDateTime, dragElement, favsToHotswap, getMessageTimeStamp } from './RossAscends-mods.js'; import { power_user, loadMovingUIState, sortEntitiesList } from './power-user.js'; @@ -1310,6 +1311,8 @@ function toggleHiddenControls(group, generationMode = null) { const isJoin = [group_generation_mode.APPEND, group_generation_mode.APPEND_DISABLED].includes(generationMode ?? group?.generation_mode); $('#rm_group_generation_mode_join_prefix').parent().toggle(isJoin); $('#rm_group_generation_mode_join_suffix').parent().toggle(isJoin); + initScrollHeight($('#rm_group_generation_mode_join_prefix')); + initScrollHeight($('#rm_group_generation_mode_join_suffix')); } function select_group_chats(groupId, skipAnimation) {