Skip to content

Commit

Permalink
fix(@hippy/react-web): fixed style when numberofLines > 1
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdyqin authored and zoomchan-cxj committed Apr 6, 2023
1 parent 780b1f3 commit cf078c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/js/packages/hippy-react-web/src/components/text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const Text: React.FC<TextProps> = React.forwardRef((props: TextProps, ref) => {
};
}
// Ellipsis should be set to 'display' not equal to 'flex'
if (typeof nStyle.display === 'undefined' && numberOfLines > 0) {
if (typeof newStyle.display === 'undefined' && typeof nStyle.display === 'undefined' && numberOfLines > 0) {
newStyle.display = 'inline-block';
}

Expand Down

0 comments on commit cf078c6

Please sign in to comment.