]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19157 Fix "after merge" text appearence
authorDavid Cho-Lerat <david.cho-lerat@sonarsource.com>
Wed, 26 Jul 2023 10:17:26 +0000 (12:17 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 26 Jul 2023 20:03:24 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/overview/branches/MeasuresPanelPercentMeasure.tsx
server/sonar-web/src/main/js/apps/overview/pullRequests/AfterMergeEstimate.tsx

index cf7c7a1e2f1f1286a22aef8a3063d9876ae8447f..5cf3f1055a56334937a6cd11a021a6d3d79293d5 100644 (file)
@@ -126,15 +126,13 @@ export default function MeasuresPanelPercentMeasure(props: Props) {
         )}
 
         {isPullRequest(branchLike) && (
-          <>
-            <GreySeparator className="sw-mt-4" />
-            <div className="sw-body-md sw-flex sw-items-center sw-mt-4">
-              <AfterMergeEstimate measures={measures} type={type} />
-              <LightLabel className="sw-ml-2">
-                {translate('component_measures.facet_category.overall_category.estimated')}
-              </LightLabel>
-            </div>
-          </>
+          <div className="sw-body-sm sw-flex sw-items-center sw-mt-4">
+            <AfterMergeEstimate measures={measures} type={type} />
+
+            <LightLabel className="sw-ml-2">
+              {translate('component_measures.facet_category.overall_category.estimated')}
+            </LightLabel>
+          </div>
         )}
       </>
     </MeasuresPanelCard>
index fa91067a93d3b742b0a4b3e780e084155313dfdd..d50b13b46305c50896d649bbb16bd1d6ddaf19c8 100644 (file)
@@ -42,7 +42,7 @@ export function AfterMergeEstimate({ className, measures, type }: AfterMergeEsti
 
   return (
     <div className={classNames(className, 'sw-flex sw-items-center')}>
-      <LightPrimary className="sw-heading-lg">
+      <LightPrimary className="sw-body-sm-highlight">
         {formatMeasure(measure.value, MetricType.Percent)}
       </LightPrimary>
     </div>