aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-profiles/compare
diff options
context:
space:
mode:
authorstanislavh <stanislav.honcharov@sonarsource.com>2023-10-12 16:12:52 +0200
committersonartech <sonartech@sonarsource.com>2023-10-16 20:02:48 +0000
commit082c1f412cd2434e29cd7ed1c8d5f7b937d4eaaf (patch)
treeb6fcbe5bb2e4a84694796e0d7beb40e4fb0e8dc6 /server/sonar-web/src/main/js/apps/quality-profiles/compare
parentfbaf22bc336d9cbd62c4014eceb5d384f73f8e8d (diff)
downloadsonarqube-082c1f412cd2434e29cd7ed1c8d5f7b937d4eaaf.tar.gz
sonarqube-082c1f412cd2434e29cd7ed1c8d5f7b937d4eaaf.zip
SONAR-20547 Fix positioning of right table
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-profiles/compare')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonResults.tsx12
1 files changed, 5 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonResults.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonResults.tsx
index 80abc67bffd..0c9cf937835 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonResults.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/compare/ComparisonResults.tsx
@@ -122,9 +122,7 @@ export default function ComparisonResults(props: Readonly<Props>) {
noSidePadding
header={
<TableRowInteractive>
- {renderFirstColumn && (
- <ContentCell aria-label={intl.formatMessage({ id: 'actions' })}>&nbsp;</ContentCell>
- )}
+ <ContentCell aria-label={intl.formatMessage({ id: 'actions' })}>&nbsp;</ContentCell>
<ContentCell className="sw-pl-4">
{intl.formatMessage(
{
@@ -138,16 +136,16 @@ export default function ComparisonResults(props: Readonly<Props>) {
>
{inRight.map((rule) => (
<TableRowInteractive key={`right-${rule.key}`}>
- {renderFirstColumn && (
- <ActionCell className="sw-px-0">
+ <ActionCell className="sw-px-0">
+ {renderFirstColumn && (
<ComparisonResultActivation
key={rule.key}
onDone={props.refresh}
profile={leftProfile}
ruleKey={rule.key}
/>
- </ActionCell>
- )}
+ )}
+ </ActionCell>
<ContentCell className="sw-pl-4">
<RuleCell rule={rule} />
</ContentCell>