Skip to content

next.js - truncation not occurring until window resizedΒ #86

@oldo

Description

@oldo

Hi there, I am using react-text-truncate on a SSR project using next.js and am finding that on initial page load the text is un-truncated, although truncation occurs after resizing the window:

Initial page load:
Screen Shot 2020-06-03 at 14 46 41

After window resized:
Screen Shot 2020-06-03 at 14 46 57

Has anyone come across this issue before and is there a way around it?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions