Skip to content

Commit d3f8f89

Browse files
Merge pull request #217 from zenml-io/QA-Fixes
Qa fixes
2 parents 5260267 + 60afa5a commit d3f8f89

File tree

1 file changed

+29
-15
lines changed

1 file changed

+29
-15
lines changed

src/ui/layouts/common/Tabs/index.tsx

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,35 @@ export const Tabs: React.FC<{ pages: TabPage[]; basePath: string }> = ({
4646
isActive ? styles.activeItem : '',
4747
)}
4848
>
49-
<Link className={styles.link} to={page.path}>
50-
<IfElse
51-
condition={isActive}
52-
renderWhenFalse={() => (
53-
<Truncate maxLines={1}>
54-
<Paragraph color="grey" style={{ padding: '5px 0' }} >{page.text}</Paragraph>
55-
</Truncate>
56-
)}
57-
renderWhenTrue={() => (
58-
<Truncate maxLines={1}>
59-
<Paragraph color="primary" style={{ padding: '5px 0' }}>{page.text}</Paragraph>
60-
</Truncate>
61-
)}
62-
/>
63-
</Link>
49+
<div
50+
style={{
51+
// backgroundColor: 'red',
52+
height: '35px',
53+
display: 'flex',
54+
justifyContent: 'center',
55+
alignItems: 'center',
56+
}}
57+
>
58+
<div>
59+
<Link className={styles.link} to={page.path}>
60+
<IfElse
61+
condition={isActive}
62+
renderWhenFalse={() => (
63+
<Truncate maxLines={1}>
64+
<Paragraph color="grey">{page.text}</Paragraph>
65+
</Truncate>
66+
)}
67+
renderWhenTrue={() => (
68+
<Truncate maxLines={1}>
69+
<Paragraph color="primary">
70+
{page.text}
71+
</Paragraph>
72+
</Truncate>
73+
)}
74+
/>
75+
</Link>
76+
</div>
77+
</div>
6478
</Box>
6579
);
6680
})}

0 commit comments

Comments
 (0)