Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renders 3 line on first app render #109

Closed
susantpatel opened this issue Sep 27, 2022 · 2 comments
Closed

Renders 3 line on first app render #109

susantpatel opened this issue Sep 27, 2022 · 2 comments

Comments

@susantpatel
Copy link

I have passed max line 2 but it renders 3 lines when my react app first renders. Then when I resize my window it makes it 2 lines. The issue is on both firefox and chrome's latest versions.

@Pdhenrique
Copy link

Pdhenrique commented Dec 1, 2023

I'm having the same problem.

browser: Chrome version - 119.0.6045.159

As an example, I am working on a menuItem component that must have a title and smaller text below. This text would be limited by default to 2 lines. however, when this menuItem is applied to a component that uses it, it is being rendered with 3 lines, and then if it is re-rendered due to some update in the screen proportion, the 2 lines are applied.

image

Some properties, much of the stylization were removed from this image to reduce the size of the content.

In the images below I will show the way it is being rendered in my project.

initial render:
image

render after recalculation:
image

@xiaody
Copy link
Owner

xiaody commented May 20, 2024

Close due to inactivity and no reproductions. Feel free to reopen with a stackblitz reproduction link.

@xiaody xiaody closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants