Adjust position of counter
This commit is contained in:
@@ -214,12 +214,12 @@ function NavItem({count, href, icon, iconFilled, label}: NavItemProps) {
|
|||||||
<Text
|
<Text
|
||||||
style={[
|
style={[
|
||||||
a.absolute,
|
a.absolute,
|
||||||
a.text_sm,
|
a.text_xs,
|
||||||
a.font_bold,
|
a.font_bold,
|
||||||
a.rounded_full,
|
a.rounded_full,
|
||||||
{
|
{
|
||||||
top: '-10%',
|
top: '-10%',
|
||||||
left: '60%',
|
left: count.length === 1 ? '50%' : '40%',
|
||||||
backgroundColor: t.palette.primary_500,
|
backgroundColor: t.palette.primary_500,
|
||||||
color: t.palette.white,
|
color: t.palette.white,
|
||||||
lineHeight: a.text_sm.fontSize,
|
lineHeight: a.text_sm.fontSize,
|
||||||
@@ -229,7 +229,7 @@ function NavItem({count, href, icon, iconFilled, label}: NavItemProps) {
|
|||||||
isTablet && [
|
isTablet && [
|
||||||
{
|
{
|
||||||
top: '10%',
|
top: '10%',
|
||||||
left: '50%',
|
left: count.length === 1 ? '50%' : '40%',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
]}>
|
]}>
|
||||||
|
|||||||
Reference in New Issue
Block a user