Skip to content

Conversation

@derekblank
Copy link
Contributor

Related to:

Proposed Changes

Site titles are already displayed as a single line using line-clamp-1.

This change uses line-clamp-1 and break-all together to prevent text overflow for long unbroken site strings.

extremely-long-site-name.mov

Testing Instructions

  1. Create a site using a very long title (example below)
  2. Modify the horizontal dimensions of the Studio app window
  3. Observe that the site title does not cause the window to overflow (example)
MyWordPressWebsiteMyWordPressWebsiteMyWordPressWebsiteMyWordPressWebsiteMyWordPressWebsiteMyWordPressWebsiteMyWordPressWebsiteMyWordPressWebsite

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

@derekblank derekblank added the bug label Apr 29, 2024
@derekblank derekblank requested a review from a team April 29, 2024 12:00
@derekblank derekblank self-assigned this Apr 29, 2024
@derekblank derekblank linked an issue Apr 29, 2024 that may be closed by this pull request
Copy link
Member

@sejas sejas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works great 👌

Screenshot 2024-04-29 at 17 47 41

@derekblank derekblank merged commit 601f200 into trunk Apr 29, 2024
@derekblank derekblank deleted the fix/extremely-long-site-name branch April 29, 2024 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extremely long site name causes overflow

3 participants