|
1 | | -import { ReactNode } from 'react'; |
2 | 1 | import { SM, Tag, Tooltip } from '@appquality/unguess-design-system'; |
3 | 2 | import { TFunction } from 'react-i18next'; |
4 | 3 | import { theme as globalTheme } from 'src/app/theme'; |
@@ -89,31 +88,31 @@ export const mapBugsToTableData = (bugs: TableBugType[], t: TFunction) => { |
89 | 88 | </AlignmentDiv> |
90 | 89 | ), |
91 | 90 | title: ( |
92 | | - <> |
93 | | - <AlignmentDiv alignment="start"> |
94 | | - <BugTitle isUnread={!bug.read} isBold={isPillBold}> |
95 | | - {bug.title.compact} |
96 | | - </BugTitle> |
97 | | - </AlignmentDiv> |
98 | | - {bug.title.context && |
99 | | - bug.title.context.map((context) => ( |
100 | | - <Tag isRegular={!isPillBold}>{context}</Tag> |
101 | | - ))} |
102 | | - {bug.type.name && ( |
103 | | - <> |
104 | | - <Pipe size="small" /> |
105 | | - <Tag isRegular={!isPillBold}>{bug.type.name}</Tag> |
106 | | - </> |
107 | | - )} |
108 | | - {!bug.read && ( |
109 | | - <> |
110 | | - <Pipe size="small" /> |
111 | | - <Meta color={globalTheme.palette.blue[600]}> |
112 | | - {t('__PAGE_BUGS_UNREAD_PILL', 'Unread')} |
113 | | - </Meta> |
114 | | - </> |
115 | | - )} |
116 | | - </> |
| 91 | + <div style={{ display: 'flex', flexDirection: 'column' }}> |
| 92 | + <BugTitle isUnread={!bug.read} isBold={isPillBold}> |
| 93 | + {bug.title.compact} |
| 94 | + </BugTitle> |
| 95 | + <div style={{ display: 'flex', alignItems: 'center' }}> |
| 96 | + {bug.title.context && |
| 97 | + bug.title.context.map((context) => ( |
| 98 | + <Tag isRegular={!isPillBold}>{context}</Tag> |
| 99 | + ))} |
| 100 | + {bug.type.name && ( |
| 101 | + <> |
| 102 | + <Pipe size="small" /> |
| 103 | + <Tag isRegular={!isPillBold}>{bug.type.name}</Tag> |
| 104 | + </> |
| 105 | + )} |
| 106 | + {!bug.read && ( |
| 107 | + <> |
| 108 | + <Pipe size="small" /> |
| 109 | + <Meta color={globalTheme.palette.blue[600]}> |
| 110 | + {t('__PAGE_BUGS_UNREAD_PILL', 'Unread')} |
| 111 | + </Meta> |
| 112 | + </> |
| 113 | + )} |
| 114 | + </div> |
| 115 | + </div> |
117 | 116 | ), |
118 | 117 | isHighlighted: !bug.read, |
119 | 118 | created: bug.created, |
|
0 commit comments