diff --git a/frontend/src/components/ConfigSelector.tsx b/frontend/src/components/ConfigSelector.tsx index 59f905f..ae7ebf6 100644 --- a/frontend/src/components/ConfigSelector.tsx +++ b/frontend/src/components/ConfigSelector.tsx @@ -4,7 +4,7 @@ import { Dropdown, Option } from '@fluentui/react-components'; import commonStore from '../stores/commonStore'; export const ConfigSelector: FC<{ size?: 'small' | 'medium' | 'large' }> = observer(({ size }) => { - return { diff --git a/frontend/src/pages/Completion.tsx b/frontend/src/pages/Completion.tsx index 0a344b8..9b5c90c 100644 --- a/frontend/src/pages/Completion.tsx +++ b/frontend/src/pages/Completion.tsx @@ -29,8 +29,10 @@ const CompletionPanel: FC = observer(() => { }; useEffect(() => { - if (inputRef.current) + if (inputRef.current) { inputRef.current.style.height = '100%'; + inputRef.current.style.maxHeight = '100%'; + } scrollToBottom(); }, []); diff --git a/frontend/src/pages/Composition.tsx b/frontend/src/pages/Composition.tsx index cb1937c..2a916a4 100644 --- a/frontend/src/pages/Composition.tsx +++ b/frontend/src/pages/Composition.tsx @@ -82,8 +82,10 @@ const CompositionPanel: FC = observer(() => { }; useEffect(() => { - if (inputRef.current) + if (inputRef.current) { inputRef.current.style.height = '100%'; + inputRef.current.style.maxHeight = '100%'; + } scrollToBottom(); if (playerRef.current && visualizerRef.current) { diff --git a/frontend/src/pages/PresetsManager/MessagesEditor.tsx b/frontend/src/pages/PresetsManager/MessagesEditor.tsx index 130d00a..779b9f4 100644 --- a/frontend/src/pages/PresetsManager/MessagesEditor.tsx +++ b/frontend/src/pages/PresetsManager/MessagesEditor.tsx @@ -108,7 +108,8 @@ const MessagesEditor: FC = observer(() => { style={{ borderTopRightRadius: 0, borderBottomRightRadius: 0 }}> - { diff --git a/frontend/src/pages/Settings.tsx b/frontend/src/pages/Settings.tsx index f46aaea..db3c982 100644 --- a/frontend/src/pages/Settings.tsx +++ b/frontend/src/pages/Settings.tsx @@ -23,7 +23,7 @@ export const GeneralSettings: FC = observer(() => { return
{ @@ -43,7 +43,7 @@ export const GeneralSettings: FC = observer(() => { { commonStore.platform === 'windows' && { @@ -89,7 +89,7 @@ export const AdvancedGeneralSettings: FC = observer(() => { apiUrl: data.value }); }} /> - { commonStore.setSettings({ @@ -140,7 +140,7 @@ export const AdvancedGeneralSettings: FC = observer(() => { apiChatModelName: data.value }); }} /> - { if (data.optionValue) { @@ -168,7 +168,7 @@ export const AdvancedGeneralSettings: FC = observer(() => { apiCompletionModelName: data.value }); }} /> - { if (data.optionValue) {