From 8d61d7655bf8fc5df7b8d3afcc9f351da73cc6dd Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Mon, 5 Oct 2020 13:55:29 +0200 Subject: SONAR-13925 Do not truncate Rules search field at 200 chars --- server/sonar-web/src/main/js/apps/coding-rules/components/App.tsx | 2 ++ .../coding-rules/components/__tests__/__snapshots__/App-test.tsx.snap | 2 ++ 2 files changed, 4 insertions(+) (limited to 'server/sonar-web/src') diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/App.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/App.tsx index 78c1e827e91..fb335dddd5c 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/App.tsx +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/App.tsx @@ -81,6 +81,7 @@ import RuleDetails from './RuleDetails'; import RuleListItem from './RuleListItem'; const PAGE_SIZE = 100; +const MAX_SEARCH_LENGTH = 200; const LIMIT_BEFORE_LOAD_MORE = 5; interface StateToProps { @@ -600,6 +601,7 @@ export class App extends React.PureComponent {