Skip to content

Commit 9760026

Browse files
authored
Merge pull request #506 from AppQuality/fix-bugs-table-title
HotFix(bugs-table): fix title tag alignment and height
2 parents ac119f9 + 5bc2fb2 commit 9760026

File tree

1 file changed

+25
-26
lines changed

1 file changed

+25
-26
lines changed

src/pages/Bugs/Content/BugsTable/utils/mapBugsToTableData.tsx

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { ReactNode } from 'react';
21
import { SM, Tag, Tooltip } from '@appquality/unguess-design-system';
32
import { TFunction } from 'react-i18next';
43
import { theme as globalTheme } from 'src/app/theme';
@@ -89,31 +88,31 @@ export const mapBugsToTableData = (bugs: TableBugType[], t: TFunction) => {
8988
</AlignmentDiv>
9089
),
9190
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>
117116
),
118117
isHighlighted: !bug.read,
119118
created: bug.created,

0 commit comments

Comments
 (0)