From ca8082ba03d4149d4111eae7b9955cc83782707e Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 28 Oct 2016 09:45:18 +0200 Subject: [PATCH] SONAR-8291 improve positioning of parameter badges --- .../main/js/apps/web-api/components/Params.js | 113 +++++++++--------- 1 file changed, 57 insertions(+), 56 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/web-api/components/Params.js b/server/sonar-web/src/main/js/apps/web-api/components/Params.js index 87762c45ba0..7c1fb97086e 100644 --- a/server/sonar-web/src/main/js/apps/web-api/components/Params.js +++ b/server/sonar-web/src/main/js/apps/web-api/components/Params.js @@ -27,69 +27,70 @@ export default function Params ({ params }) {
- {params.map(param => ( - - + +
+ {param.required ? 'required' : 'optional'} +
- + {param.since && ( +
+ since {param.since} +
+ )} + - - {param.defaultValue && ( -
-

Default value

- {param.defaultValue} -
- )} + - - ))} + {param.defaultValue && ( +
+

Default value

+ {param.defaultValue} +
+ )} + + {param.exampleValue && ( +
+

Example value

+ {param.exampleValue} +
+ )} + + + ))}
- {param.key} - {param.internal && ( - - - - )} + {params.map(param => ( +
+ {param.key} -
- {param.required ? 'required' : 'optional'} -
+ {param.internal && ( +
+ +
+ )} - {param.since && ( -
- since {param.since} -
- )} + {param.deprecatedSince && ( +
+ +
+ )} - {param.deprecatedSince && ( -
- -
- )} -
-
-
- {param.possibleValues && ( -
-

Possible values

-
    - {param.possibleValues.map(value => ( -
  • - {value} -
  • - ))} -
-
- )} +
+
+
+ {param.possibleValues && ( +
+

Possible values

+
    + {param.possibleValues.map(value => ( +
  • + {value} +
  • + ))} +
+
+ )} - {param.exampleValue && ( -
-

Example value

- {param.exampleValue} -
- )} -
-- 2.39.5