]> source.dussan.org Git - sonarqube.git/commitdiff
remove avatar for system events on issues changelog popup (#2109)
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Fri, 26 May 2017 15:15:46 +0000 (17:15 +0200)
committerStas Vilchik <stas-vilchik@users.noreply.github.com>
Fri, 26 May 2017 15:15:46 +0000 (17:15 +0200)
server/sonar-web/src/main/js/components/issue/popups/ChangelogPopup.js
server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/ChangelogPopup-test.js.snap
server/sonar-web/src/main/less/components/bubble-popup.less
server/sonar-web/src/main/less/components/issues.less

index c856a2c94c71264113db11d12b9bedc56c8d88e5..7551e9869db062afad9b53ceb95fbb290fc9a2d6 100644 (file)
@@ -82,7 +82,6 @@ export default class ChangelogPopup extends React.PureComponent {
                 <td className="thin text-left text-top nowrap">
                   {moment(issue.creationDate).format('LLL')}
                 </td>
-                <td className="thin text-left text-top nowrap" />
                 <td className="text-left text-top">
                   {author ? `${translate('created_by')} ${author}` : translate('created')}
                 </td>
@@ -93,16 +92,17 @@ export default class ChangelogPopup extends React.PureComponent {
                   <td className="thin text-left text-top nowrap">
                     {moment(item.creationDate).format('LLL')}
                   </td>
-                  <td className="thin text-left text-top nowrap">
-                    <Avatar
-                      className="little-spacer-right"
-                      hash={item.avatar}
-                      name={item.userName}
-                      size={16}
-                    />
-                    {item.userName}
-                  </td>
                   <td className="text-left text-top">
+                    {item.userName &&
+                      <p>
+                        <Avatar
+                          className="little-spacer-right"
+                          hash={item.avatar}
+                          name={item.userName}
+                          size={16}
+                        />
+                        {item.userName}
+                      </p>}
                     {item.diffs.map(diff => <IssueChangelogDiff key={diff.key} diff={diff} />)}
                   </td>
                 </tr>
index 8934f554418dc5f4e5e0145b25b95c522c46ced0..078a01fc7bfdeb7eec147f5d5d4efeb20740a830 100644 (file)
@@ -17,9 +17,6 @@ exports[`should render the changelog popup correctly 1`] = `
           >
             March 1, 2017 9:36 AM
           </td>
-          <td
-            className="thin text-left text-top nowrap"
-          />
           <td
             className="text-left text-top"
           >
@@ -32,20 +29,18 @@ exports[`should render the changelog popup correctly 1`] = `
           >
             March 1, 2017 9:36 AM
           </td>
-          <td
-            className="thin text-left text-top nowrap"
-          >
-            <Connect(Avatar)
-              className="little-spacer-right"
-              hash="gravatarhash"
-              name="john.doe"
-              size={16}
-            />
-            john.doe
-          </td>
           <td
             className="text-left text-top"
           >
+            <p>
+              <Connect(Avatar)
+                className="little-spacer-right"
+                hash="gravatarhash"
+                name="john.doe"
+                size={16}
+              />
+              john.doe
+            </p>
             <IssueChangelogDiff
               diff={
                 Object {
index 1986221db053323b7367f6cf0c9cdd7f188969be..ee39d02449cd620d490dc6c4516ab1cde73a7541 100644 (file)
@@ -33,6 +33,7 @@
   box-sizing: border-box;
   background-color: @white;
   box-shadow: @defaultShadow;
+  cursor: default;
 }
 
 .bubble-popup-menu {
index 18ef383c2b74bcdb92682fa09b225bf2175e658e..6a861ec641f34a6aac28e15f06c32e6267a6fcf7 100644 (file)
 }
 
 .issue-changelog {
+  min-width: 450px;
   max-width: 540px;
   max-height: 320px;
   overflow: auto;
@@ -371,4 +372,4 @@ input.issue-action-options-search {
 .issue .menu {
   max-height: 120px;
   overflow: auto;
-}
\ No newline at end of file
+}