Fix notifications badge on web (#8347)
* Add notificationCountWeb style * Apply styles.notificationCountWeb to BottomBarWeb NavItem
This commit is contained in:
@@ -30,6 +30,11 @@ export const styles = StyleSheet.create({
|
|||||||
borderRadius: 6,
|
borderRadius: 6,
|
||||||
zIndex: 1,
|
zIndex: 1,
|
||||||
},
|
},
|
||||||
|
notificationCountWeb: {
|
||||||
|
paddingTop: 3,
|
||||||
|
paddingBottom: 3,
|
||||||
|
borderRadius: 12,
|
||||||
|
},
|
||||||
notificationCountLight: {
|
notificationCountLight: {
|
||||||
borderColor: colors.white,
|
borderColor: colors.white,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ const NavItem: React.FC<{
|
|||||||
{children({isActive})}
|
{children({isActive})}
|
||||||
{notificationCount ? (
|
{notificationCount ? (
|
||||||
<View
|
<View
|
||||||
style={styles.notificationCount}
|
style={[styles.notificationCount, styles.notificationCountWeb]}
|
||||||
aria-label={_(
|
aria-label={_(
|
||||||
msg`${plural(notificationCount, {
|
msg`${plural(notificationCount, {
|
||||||
one: '# unread item',
|
one: '# unread item',
|
||||||
|
|||||||
Reference in New Issue
Block a user