From: Stas Vilchik Date: Wed, 28 Mar 2018 11:40:32 +0000 (+0200) Subject: SONAR-10447 Fix alignment problem on Projects page X-Git-Tag: 7.5~1442 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f2a73bce4278b987c7ad008a1ea83621a97550f5;p=sonarqube.git SONAR-10447 Fix alignment problem on Projects page --- diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectCardLeak.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectCardLeak.tsx index d4477d904eb..a6059011e22 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ProjectCardLeak.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectCardLeak.tsx @@ -42,28 +42,30 @@ export default function ProjectCardLeak({ organization, project }: Props) { const hasTags = project.tags.length > 0; return ( -
+
- {project.isFavorite != null && ( - - )} -

- {!organization && ( - +
+ {project.isFavorite != null && ( + )} - {project.name} -

- {project.analysisDate && } -
- {isPrivate && ( - - )} - {hasTags && } +

+ {!organization && ( + + )} + {project.name} +

+ {project.analysisDate && } +
+ {isPrivate && ( + + )} + {hasTags && } +
{project.analysisDate && project.leakPeriodDate && ( diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectCardLeakMeasures.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectCardLeakMeasures.tsx index 50c440bda9c..2a9c6aba3ad 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ProjectCardLeakMeasures.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectCardLeakMeasures.tsx @@ -32,7 +32,7 @@ interface Props { export default function ProjectCardLeakMeasures({ measures }: Props) { return (
-
+
-
+
diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectCardOverall.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectCardOverall.tsx index 0721c0d34eb..9f7cb39bb39 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ProjectCardOverall.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectCardOverall.tsx @@ -41,28 +41,30 @@ export default function ProjectCardOverall({ organization, project }: Props) { const hasTags = project.tags.length > 0; return ( -
+
- {project.isFavorite !== undefined && ( - - )} -

- {!organization && ( - - )} - {project.name} -

- {project.analysisDate && } -
- {isPrivate && ( - +
+ {project.isFavorite !== undefined && ( + )} - {hasTags && } +

+ {!organization && ( + + )} + {project.name} +

+ {project.analysisDate && } +
+ {isPrivate && ( + + )} + {hasTags && } +
{project.analysisDate && (
diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectCardOverallMeasures.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectCardOverallMeasures.tsx index e11c8e5b80d..4f833156d2f 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ProjectCardOverallMeasures.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectCardOverallMeasures.tsx @@ -40,7 +40,7 @@ export default function ProjectCardOverallMeasures({ measures }: Props) { return (
-
+
-

- + - + - Foo - -

- -
+ > + Foo + + + +
+
diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCardLeakMeasures-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCardLeakMeasures-test.tsx.snap index 5dbdbd4a074..0e9a63970dc 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCardLeakMeasures-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCardLeakMeasures-test.tsx.snap @@ -5,7 +5,7 @@ exports[`should render correctly with all data 1`] = ` className="project-card-leak-measures" >
-

- + - + - Foo - -

- -
+ > + Foo + + + +
+
diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCardOverallMeasures-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCardOverallMeasures-test.tsx.snap index 2c300ec6258..48a600f9855 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCardOverallMeasures-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCardOverallMeasures-test.tsx.snap @@ -55,7 +55,7 @@ exports[`should render correctly with all data 1`] = ` className="project-card-measures" >