diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2019-05-31 16:59:15 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-06-13 20:21:12 +0200 |
commit | 0616b2d9acf1a4f1512695d869db9363e4a9a704 (patch) | |
tree | b37646775b66756a6f875373a7dcb1bad9a1b592 /server/sonar-web/src | |
parent | e5f61c4ab51161d50087f2939044e30719b78bdb (diff) | |
download | sonarqube-0616b2d9acf1a4f1512695d869db9363e4a9a704.tar.gz sonarqube-0616b2d9acf1a4f1512695d869db9363e4a9a704.zip |
SONAR-12139 Fix display issue on projects administration page
Diffstat (limited to 'server/sonar-web/src')
3 files changed, 20 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/app/styles/init/misc.css b/server/sonar-web/src/main/js/app/styles/init/misc.css index 0e27826da62..5e5b2660033 100644 --- a/server/sonar-web/src/main/js/app/styles/init/misc.css +++ b/server/sonar-web/src/main/js/app/styles/init/misc.css @@ -28,6 +28,13 @@ th.nowrap { white-space: nowrap !important; } +table.hide-overflow td, +td.hide-overflow, +th.hide-overflow { + text-overflow: ellipsis; + overflow: hidden; +} + .hidden { display: none !important; visibility: hidden !important; diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/ProjectRow.tsx b/server/sonar-web/src/main/js/apps/projectsManagement/ProjectRow.tsx index 390a6d3bbf1..cb1fe0f2d15 100644 --- a/server/sonar-web/src/main/js/apps/projectsManagement/ProjectRow.tsx +++ b/server/sonar-web/src/main/js/apps/projectsManagement/ProjectRow.tsx @@ -65,7 +65,7 @@ export default class ProjectRow extends React.PureComponent<Props> { /> </td> - <td className="nowrap"> + <td className="nowrap hide-overflow" style={{ maxWidth: 400 }}> <span className="note">{project.key}</span> </td> diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRow-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRow-test.tsx.snap index f97f8899d35..bbe0c710dd0 100644 --- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRow-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRow-test.tsx.snap @@ -50,7 +50,12 @@ exports[`renders 1`] = ` /> </td> <td - className="nowrap" + className="nowrap hide-overflow" + style={ + Object { + "maxWidth": 400, + } + } > <span className="note" @@ -139,7 +144,12 @@ exports[`renders 2`] = ` /> </td> <td - className="nowrap" + className="nowrap hide-overflow" + style={ + Object { + "maxWidth": 400, + } + } > <span className="note" |