File tree Expand file tree Collapse file tree 1 file changed +29
-15
lines changed
src/ui/layouts/common/Tabs Expand file tree Collapse file tree 1 file changed +29
-15
lines changed Original file line number Diff line number Diff 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" > { page . text } </ Paragraph >
55- </ Truncate >
56- ) }
57- renderWhenTrue = { ( ) => (
58- < Truncate maxLines = { 1 } >
59- < Paragraph color = "primary" > { 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 } ) }
You can’t perform that action at this time.
0 commit comments