diff --git a/changelogs/fragments/8867.yml b/changelogs/fragments/8867.yml new file mode 100644 index 000000000000..384f388393c4 --- /dev/null +++ b/changelogs/fragments/8867.yml @@ -0,0 +1,2 @@ +fix: +- Add max height and scroll to error message body ([#8867](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8867)) \ No newline at end of file diff --git a/src/plugins/data/public/query/query_string/language_service/lib/__snapshots__/query_result.test.tsx.snap b/src/plugins/data/public/query/query_string/language_service/lib/__snapshots__/query_result.test.tsx.snap index a0fd2861a2b4..f3d4e3df2c92 100644 --- a/src/plugins/data/public/query/query_string/language_service/lib/__snapshots__/query_result.test.tsx.snap +++ b/src/plugins/data/public/query/query_string/language_service/lib/__snapshots__/query_result.test.tsx.snap @@ -37,6 +37,8 @@ exports[`Query Result show error status with error message 2`] = ` className="eui-textBreakWord" style={ Object { + "maxHeight": "250px", + "overflowY": "auto", "width": "250px", } } diff --git a/src/plugins/data/public/query/query_string/language_service/lib/query_result.tsx b/src/plugins/data/public/query/query_string/language_service/lib/query_result.tsx index 5378cf8a111c..dff7faea36e3 100644 --- a/src/plugins/data/public/query/query_string/language_service/lib/query_result.tsx +++ b/src/plugins/data/public/query/query_string/language_service/lib/query_result.tsx @@ -143,7 +143,10 @@ export function QueryResult(props: { queryStatus: QueryStatus }) { data-test-subj="queryResultError" > ERRORS -
+