Skip to content

Commit 0f62db6

Browse files
Comment & typo
1 parent c21258e commit 0f62db6

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

newIDE/app/src/AiGeneration/AiRequestChat/ChatMessages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ export const ChatMessages = React.memo<Props>(function ChatMessages({
648648
<Line justifyContent="flex-start">
649649
<AlertMessage kind="error">
650650
<Trans>
651-
The AI encountered an error while handling your request - this was
651+
The AI encountered an error while handling your request - this
652652
request was not counted in your AI usage. Try again later.
653653
</Trans>
654654
</AlertMessage>

newIDE/app/src/AiGeneration/AiRequestChat/index.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -669,8 +669,11 @@ export const AiRequestChat = React.forwardRef<Props, AiRequestChatInterface>(
669669
</Column>
670670
)}
671671
<form onSubmit={onSubmitForNewChat}>
672-
<Column noMargin alignItems="stretch" justifyContent="stretch">
673-
<Spacer />
672+
<ColumnStackLayout
673+
noMargin
674+
alignItems="stretch"
675+
justifyContent="stretch"
676+
>
674677
{!shouldReplaceFormWithCreditsOrSubscriptionPrompt ? (
675678
<CompactTextAreaFieldWithControls
676679
maxLength={6000}
@@ -859,10 +862,9 @@ export const AiRequestChat = React.forwardRef<Props, AiRequestChatInterface>(
859862
</Column>
860863
<Column noMargin>{errorText || priceAndRequestsText}</Column>
861864
</Line>
862-
</Column>
865+
</ColumnStackLayout>
863866
</form>
864867
</ColumnStackLayout>
865-
<Spacer />
866868
{!standAloneForm && (
867869
<Column justifyContent="center">
868870
<Text size="body-small" color="secondary" align="center" noMargin>
@@ -985,7 +987,11 @@ export const AiRequestChat = React.forwardRef<Props, AiRequestChatInterface>(
985987
'avoid-soft-keyboard': true,
986988
})}
987989
>
988-
<Column justifyContent="stretch" alignItems="stretch" noMargin>
990+
<ColumnStackLayout
991+
justifyContent="stretch"
992+
alignItems="stretch"
993+
noMargin
994+
>
989995
{!standAloneForm && (
990996
<CompactTextAreaFieldWithControls
991997
maxLength={6000}
@@ -1061,7 +1067,7 @@ export const AiRequestChat = React.forwardRef<Props, AiRequestChatInterface>(
10611067
{isForAnotherProjectText || errorText || priceAndRequestsText}
10621068
</Column>
10631069
</Line>
1064-
</Column>
1070+
</ColumnStackLayout>
10651071
</form>
10661072
</div>
10671073
);

newIDE/app/src/AiGeneration/AskAiStandAloneForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ export const AskAiStandAloneForm = ({
589589
|}) =>
590590
onSendMessage({
591591
userMessage,
592-
// Mode is forced to agent in standalone.
592+
// mode, Mode is forced to agent in standalone form, no need to pass it here.
593593
editorFunctionCallResults: aiRequestForForm
594594
? getEditorFunctionCallResults(aiRequestForForm.id) || []
595595
: [],

0 commit comments

Comments
 (0)