Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(notifications/native): ui fixes (#14786)

Calinteodorbe06547cc41d
diff --git a/react/features/conference/middleware.any.ts b/react/features/conference/middleware.any.ts
index a2c8f5bc10..3801a96a8c 100644
--- a/react/features/conference/middleware.any.ts
+++ b/react/features/conference/middleware.any.ts
@@ -314,6 +314,7 @@ function _calendarNotification({ dispatch, getState }: IStore, eventToShow: any)
customActionType,
description,
icon,
+ maxLines: 1,
title,
uid
}, NOTIFICATION_TIMEOUT_TYPE.STICKY));
diff --git a/react/features/notifications/components/native/Notification.tsx b/react/features/notifications/components/native/Notification.tsx
index a218fe32d6..4c042d297a 100644
--- a/react/features/notifications/components/native/Notification.tsx
+++ b/react/features/notifications/components/native/Notification.tsx
@@ -152,8 +152,9 @@ const Notification = ({
if (descriptionArray?.length) {
return (
<>
- <Text style = { styles.contentTextTitle as TextStyle }>
- {titleText}
+ <Text
+ style = { styles.contentTextTitle as TextStyle }>
+ { titleText }
</Text>
{
descriptionArray.map((line, index) => (
@@ -170,7 +171,7 @@ const Notification = ({
return (
<Text style = { styles.contentTextTitle as TextStyle }>
- {titleText}
+ { titleText }
</Text>
);
};
@@ -202,7 +203,7 @@ const Notification = ({
{_renderContent()}
</View>
<View style = { styles.btnContainer as ViewStyle }>
- {mapAppearanceToButtons()}
+ { mapAppearanceToButtons() }
</View>
</View>
<IconButton
diff --git a/react/features/notifications/components/native/styles.ts b/react/features/notifications/components/native/styles.ts
index 6c56d124f2..9a3ef0505e 100644
--- a/react/features/notifications/components/native/styles.ts
+++ b/react/features/notifications/components/native/styles.ts
@@ -7,13 +7,12 @@ const contentColumn = {
};
const notification = {
- display: 'flex',
backgroundColor: BaseTheme.palette.ui10,
borderRadius: BaseTheme.shape.borderRadius,
borderLeftColor: BaseTheme.palette.link01Active,
- borderLeftWidth: 4,
+ borderLeftWidth: BaseTheme.spacing[1],
+ display: 'flex',
flexDirection: 'row',
- maxHeight: 120,
height: 'auto',
marginBottom: BaseTheme.spacing[2],
marginHorizontal: BaseTheme.spacing[2],
@@ -43,20 +42,20 @@ export default {
*/
contentContainer: {
- marginTop: BaseTheme.spacing[2]
+ marginHorizontal: BaseTheme.spacing[2]
},
contentText: {
color: BaseTheme.palette.text04,
- marginLeft: BaseTheme.spacing[6],
+ marginLeft: BaseTheme.spacing[5],
marginTop: BaseTheme.spacing[1]
},
contentTextTitle: {
color: BaseTheme.palette.text04,
- marginLeft: BaseTheme.spacing[6],
fontWeight: 'bold',
- marginTop: BaseTheme.spacing[1]
+ marginLeft: BaseTheme.spacing[5],
+ marginTop: BaseTheme.spacing[2]
},
/**
@@ -102,7 +101,7 @@ export default {
btnContainer: {
display: 'flex',
flexDirection: 'row',
- marginLeft: BaseTheme.spacing[1]
+ marginLeft: BaseTheme.spacing[3]
},
withToolbox: {