Fixate message counter to end of bug row

Sascha created

Previously the counter has shifted around depending on the length of the bug
titles.

Change summary

webui/src/pages/list/BugRow.tsx | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)

Detailed changes

webui/src/pages/list/BugRow.tsx 🔗

@@ -1,7 +1,6 @@
 import React from 'react';
 import { Link } from 'react-router-dom';
 
-import Grid from '@material-ui/core/Grid';
 import TableCell from '@material-ui/core/TableCell/TableCell';
 import TableRow from '@material-ui/core/TableRow/TableRow';
 import Tooltip from '@material-ui/core/Tooltip/Tooltip';
@@ -80,6 +79,9 @@ const useStyles = makeStyles((theme) => ({
     fontSize: '1rem',
     marginLeft: theme.spacing(0.5),
   },
+  commentCountCell: {
+    display: 'inline-flex',
+  },
 }));
 
 type Props = {
@@ -113,17 +115,11 @@ function BugRow({ bug }: Props) {
              by {bug.author.displayName}
           </div>
         </div>
-      </TableCell>
-      <TableCell>
         {commentCount > 0 && (
-          <Grid container wrap="nowrap">
-            <Grid item>
-              <CommentOutlinedIcon aria-label="Comment count" />
-            </Grid>
-            <Grid item>
-              <span className={classes.commentCount}>{commentCount}</span>
-            </Grid>
-          </Grid>
+          <span className={classes.commentCountCell}>
+            <CommentOutlinedIcon aria-label="Comment count" />
+            <span className={classes.commentCount}>{commentCount}</span>
+          </span>
         )}
       </TableCell>
     </TableRow>