From 57cbcd812b34abd46d9a8ddf82f2875ed088b6c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Fri, 22 Jun 2018 10:17:11 +0200 Subject: [PATCH] SONAR-10926 Fix issues alignement --- .../src/main/js/components/issue/Issue.css | 30 ++-- .../issue/components/IssueActionsBar.js | 150 +++++++++--------- 2 files changed, 82 insertions(+), 98 deletions(-) diff --git a/server/sonar-web/src/main/js/components/issue/Issue.css b/server/sonar-web/src/main/js/components/issue/Issue.css index 227241347de..09722b04926 100644 --- a/server/sonar-web/src/main/js/components/issue/Issue.css +++ b/server/sonar-web/src/main/js/components/issue/Issue.css @@ -40,14 +40,6 @@ border-top-color: transparent; } -.issue-table { - width: 100%; -} - -.issue-table td { - vertical-align: top; -} - .issue-row { display: flex; margin-bottom: 5px; @@ -59,16 +51,10 @@ white-space: nowrap; } -.issue-table-meta-cell { - width: 1px; - padding-right: 5px; - white-space: nowrap; -} - .issue-message { flex-grow: 1; - padding-left: 10px; - padding-right: 10px; + padding-left: var(--gridSize); + padding-right: var(--gridSize); line-height: 1.5; font-size: var(--baseFontSize); font-weight: 600; @@ -92,10 +78,17 @@ background: rgba(75, 159, 213, 0.3); } +.issue-actions { + display: flex; + justify-content: space-between; + flex-wrap: wrap; + align-items: center; + padding-left: var(--gridSize); +} + .issue-meta-list { display: flex; align-items: center; - padding-left: 10px; } .issue-meta { @@ -125,8 +118,7 @@ .issue-comments { margin-top: 5px; - padding-left: 10px; - padding-right: 10px; + padding-left: var(--gridSize); font-size: var(--smallFontSize); } diff --git a/server/sonar-web/src/main/js/components/issue/components/IssueActionsBar.js b/server/sonar-web/src/main/js/components/issue/components/IssueActionsBar.js index fb892131a08..f12909c0f9a 100644 --- a/server/sonar-web/src/main/js/components/issue/components/IssueActionsBar.js +++ b/server/sonar-web/src/main/js/components/issue/components/IssueActionsBar.js @@ -93,85 +93,77 @@ export default class IssueActionsBar extends React.PureComponent { const hasTransitions = issue.transitions && issue.transitions.length > 0; return ( - - - - - - - -
-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • - {issue.effort && ( -
  • - - {translateWithParameters('issue.x_effort', issue.effort)} - -
  • - )} - {canComment && ( - - )} -
-
-
    -
  • - -
  • -
-
+
+ + +
); } } -- 2.39.5