Skip to content

Commit

Permalink
fix: ensure single line with ellipsis on overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
samh-nl committed Aug 21, 2023
1 parent 211e92d commit 6dca5cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/ExceededCommentLength.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ function ExceededCommentLength(props) {
}

return (
<Text style={[styles.textMicro, styles.textDanger, styles.chatItemComposeSecondaryRow, styles.mlAuto, styles.pl2]}>
<Text
style={[styles.textMicro, styles.textDanger, styles.chatItemComposeSecondaryRow, styles.mlAuto, styles.pl2]}
numberOfLines={1}
>
{translate('composer.commentExceededMaxLength', {formattedMaxLength: numberFormat(CONST.MAX_COMMENT_LENGTH)})}
</Text>
);
Expand Down

0 comments on commit 6dca5cd

Please sign in to comment.