[bugfix] Main Page: Message Log Input Box Ratio: Fix init apply ratio. imperfectly, tho.

This commit is contained in:
Sakamoto Shiina
2024-11-30 19:28:36 +09:00
parent 7df1eb04d0
commit 5ddc77a9cc
2 changed files with 27 additions and 18 deletions

View File

@@ -17,6 +17,7 @@ export const store = {
backend_subprocess: null,
config_page: null,
log_box_ref: null,
is_applied_init_message_box_height: false,
};
const generatePropertyNames = (base_name) => ({
@@ -122,6 +123,7 @@ export const { atomInstance: Atom_ForegroundStatus, useHook: useStore_Foreground
export const { atomInstance: Atom_MessageLogs, useHook: useStore_MessageLogs } = createAtomWithHook(generateTestData(20), "MessageLogs");
export const { atomInstance: Atom_MessageInputValue, useHook: useStore_MessageInputValue } = createAtomWithHook("", "MessageInputValue");
export const { atomInstance: Atom_IsVisibleResendButton, useHook: useStore_IsVisibleResendButton } = createAtomWithHook(false, "IsVisibleResendButton");
export const { atomInstance: Atom_IsAppliedInitMessageBoxHeight, useHook: useStore_IsAppliedInitMessageBoxHeight } = createAtomWithHook(false, "IsAppliedInitMessageBoxHeight");
export const { atomInstance: Atom_SelectableLanguageList, useHook: useStore_SelectableLanguageList } = createAtomWithHook([], "SelectableLanguageList");