Add word wrap for the query explanation (#1634)

* Add word wrap for the query explanation

* Update test snap
This commit is contained in:
sunghyunkang1111 2023-10-02 11:28:25 -05:00 committed by GitHub
parent 332554e21c
commit 9ad9f7bf51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -546,6 +546,7 @@ export const QueryCopilotTab: React.FC<QueryCopilotProps> = ({ explorer }: Query
language={"sql"} language={"sql"}
content={query} content={query}
isReadOnly={false} isReadOnly={false}
wordWrap={"on"}
ariaLabel={"Editing Query"} ariaLabel={"Editing Query"}
lineNumbers={"on"} lineNumbers={"on"}
onContentChanged={(newQuery: string) => setQuery(newQuery)} onContentChanged={(newQuery: string) => setQuery(newQuery)}

View File

@ -131,6 +131,7 @@ exports[`Query copilot tab snapshot test should render with initial input 1`] =
lineNumbers="on" lineNumbers="on"
onContentChanged={[Function]} onContentChanged={[Function]}
onContentSelected={[Function]} onContentSelected={[Function]}
wordWrap="on"
/> />
<QueryCopilotResults /> <QueryCopilotResults />
</t> </t>