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): set numberOfLines for content text description and title

Calin-Teodora2aca30d57f6
diff --git a/react/features/notifications/components/native/Notification.tsx b/react/features/notifications/components/native/Notification.tsx
index 0cda95442b..186c381b18 100644
--- a/react/features/notifications/components/native/Notification.tsx
+++ b/react/features/notifications/components/native/Notification.tsx
@@ -153,6 +153,7 @@ const Notification = ({
return (
<>
<Text
+ numberOfLines = { 1 }
style = { styles.contentTextTitle as TextStyle }>
{ titleText }
</Text>
@@ -160,6 +161,7 @@ const Notification = ({
descriptionArray.map((line, index) => (
<Text
key = { index }
+ numberOfLines = { 3 }
style = { styles.contentText }>
{ replaceNonUnicodeEmojis(line) }
</Text>
@@ -170,7 +172,9 @@ const Notification = ({
}
return (
- <Text style = { styles.contentTextTitle as TextStyle }>
+ <Text
+ numberOfLines = { 1 }
+ style = { styles.contentTextTitle as TextStyle }>
{ titleText }
</Text>
);
diff --git a/react/features/notifications/components/native/styles.ts b/react/features/notifications/components/native/styles.ts
index b21f4a696e..e4a8ae5e44 100644
--- a/react/features/notifications/components/native/styles.ts
+++ b/react/features/notifications/components/native/styles.ts
@@ -13,7 +13,6 @@ const notification = {
borderLeftWidth: BaseTheme.spacing[1],
display: 'flex',
flexDirection: 'row',
- height: 'auto',
marginVertical: BaseTheme.spacing[1],
maxWidth: 416,
width: '100%'