Add word wrap for the query explanation (#1634)
* Add word wrap for the query explanation * Update test snap
This commit is contained in:
parent
332554e21c
commit
9ad9f7bf51
|
@ -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)}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue