Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions frontend/src/components/ChatSuggestionInputCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export const ChatSuggestionInputCard = ({
label={texts.common.text}
placeholder={texts.common.text}
resize="vertical"
autosize
minRows={3}
maxRows={15}
{...suggestionProps}
/>
<ActionIcon
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ChatSuggestionsInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function ChatSuggestionsInput<T extends ChatSuggestionsFormValues>({ form
{description}
</Text>
)}
<SimpleGrid cols={2}>
<SimpleGrid cols={1}>
{values.chatSuggestions?.map((_, index) => (
<ChatSuggestionInputCard
key={index}
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/components/Forms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
MultiSelect as MantineMultiSelect,
Select as MantineSingleSelect,
TagsInput,
Textarea,
} from '@mantine/core';
import { IconRefresh } from '@tabler/icons-react';
import { HTMLProps, PropsWithChildren, ReactNode, useEffect, useState } from 'react';
Expand Down Expand Up @@ -551,8 +552,11 @@ const InputTextarea = ({ className, name, ...other }: FormEditorProps<string>) =
const { field, fieldState, formState } = useController({ name });

return (
<textarea
<Textarea
id={name}
autosize
maxRows={15}
minRows={3}
{...field}
{...other}
className={cn('textarea textarea-bordered w-full', className, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function UpsertConfigurationDialog(props: UpsertConfigurationDialogProps)
/>
<ChatSuggestionsInput form={form} description={texts.theme.suggestionsHints(MAX_SUGGESTIONS)} />
</fieldset>
<Flex gap="sm" justify={'end'}>
<Flex gap="sm" pt="sm" justify={'end'}>
<Button onClick={onClose} variant="subtle">
{texts.common.cancel}
</Button>
Expand Down