From 507c89e44decf344a9163b38e813057764c48ec1 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 14 Aug 2017 11:03:49 +0200 Subject: [PATCH] SONAR-9583 use fixed width on web api page (#2347) --- .../js/apps/web-api/components/WebApiApp.js | 74 ++++++++++--------- .../main/js/apps/web-api/styles/web-api.css | 5 +- 2 files changed, 42 insertions(+), 37 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/web-api/components/WebApiApp.js b/server/sonar-web/src/main/js/apps/web-api/components/WebApiApp.js index ecd167948dc..186bda54c7a 100644 --- a/server/sonar-web/src/main/js/apps/web-api/components/WebApiApp.js +++ b/server/sonar-web/src/main/js/apps/web-api/components/WebApiApp.js @@ -144,43 +144,51 @@ export default class WebApiApp extends React.PureComponent { const domain = domains.find(domain => isDomainPathActive(domain.path, splat)); return ( -
+
-
-
- -

- {translate('api_documentation.page')} -

- +
+
+
+
+
+ +

+ {translate('api_documentation.page')} +

+ +
+ + + + +
+
- - - -
-
- {domain && - } +
+
+ {domain && + } +
); diff --git a/server/sonar-web/src/main/js/apps/web-api/styles/web-api.css b/server/sonar-web/src/main/js/apps/web-api/styles/web-api.css index 121d9b55a35..627ac47564e 100644 --- a/server/sonar-web/src/main/js/apps/web-api/styles/web-api.css +++ b/server/sonar-web/src/main/js/apps/web-api/styles/web-api.css @@ -6,16 +6,13 @@ margin: 20px 10px 0; padding: 0 10px 20px; border-bottom: 1px solid #e6e6e6; + white-space: nowrap; } .web-api-search .icon-search { color: #cdcdcd; } -.web-api-domain { - padding: 10px 20px; -} - .web-api-domain-header, .web-api-action-header { display: flex; -- 2.39.5