diff options
author | Ivan Chen <ivan@thetaggid.com> | 2021-01-05 15:56:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-05 15:56:32 -0500 |
commit | f2b48cb997a44f05ecee33942307bf58e144e406 (patch) | |
tree | 7410865bd16cfcabf094fc7eb2e47d2871f542c2 /src/components/notifications | |
parent | 5933716cf0f3f3c602aff4fe133b1eb5893e80df (diff) |
[TMA-495] Notification Item UI Update (#165)
* slight styling change
* updated boldness
* better spacing calculation
Diffstat (limited to 'src/components/notifications')
-rw-r--r-- | src/components/notifications/Notification.tsx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/components/notifications/Notification.tsx b/src/components/notifications/Notification.tsx index 38e4d597..f6a04526 100644 --- a/src/components/notifications/Notification.tsx +++ b/src/components/notifications/Notification.tsx @@ -6,7 +6,12 @@ import {useDispatch, useStore} from 'react-redux'; import {loadAvatar} from '../../services'; import {RootState} from '../../store/rootReducer'; import {NotificationType, ScreenType} from '../../types'; -import {fetchUserX, SCREEN_HEIGHT, userXInStore} from '../../utils'; +import { + fetchUserX, + SCREEN_HEIGHT, + SCREEN_WIDTH, + userXInStore, +} from '../../utils'; interface NotificationProps { item: NotificationType; @@ -115,7 +120,7 @@ const Notification: React.FC<NotificationProps> = (props) => { const styles = StyleSheet.create({ container: { flexDirection: 'row', - height: SCREEN_HEIGHT / 12, + height: SCREEN_HEIGHT / 10, flex: 1, alignItems: 'center', }, @@ -135,9 +140,11 @@ const styles = StyleSheet.create({ height: '80%', flexDirection: 'column', justifyContent: 'space-around', + marginRight: SCREEN_WIDTH / 6, }, actorName: { - fontWeight: 'bold', + fontSize: 15, + fontWeight: '700', }, moment: { position: 'absolute', |