Skip to content

fix: override text-wrap: pretty for tiptap editor paragraphs#3844

Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1770737949-fix-tiptap-text-wrap
Open

fix: override text-wrap: pretty for tiptap editor paragraphs#3844
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1770737949-fix-tiptap-text-wrap

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Feb 10, 2026

Summary

The global CSS (apps/desktop/src/styles/globals.css:152-154) sets text-wrap: pretty on all <p> elements. This causes the browser to use an orphan-avoidance line-breaking algorithm — instead of greedily filling each line, it pushes extra words to the next line to avoid short last lines.

Inside the tiptap editor, this produces unexpected line breaks: text wraps much earlier than the available width, leaving large gaps at the end of lines. This fix overrides it with text-wrap: wrap scoped to .tiptap p, restoring standard greedy wrapping in the editor only.

Review & Testing Checklist for Human

  • Visually verify in the app — type a long paragraph in the editor and confirm it now wraps at the expected position (greedy, filling lines fully). This was diagnosed from screenshots only and not tested in the running app.
  • Confirm non-editor <p> elements (e.g., UI labels, status text) still render correctly with text-wrap: pretty

Notes


Open with Devin

Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
@netlify
Copy link

netlify bot commented Feb 10, 2026

Deploy Preview for hyprnote-storybook ready!

Name Link
🔨 Latest commit 5759e90
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/698b515f8a9a210008f3678a
😎 Deploy Preview https://deploy-preview-3844--hyprnote-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Feb 10, 2026

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit 5759e90
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/698b515f573de40008fe2272
😎 Deploy Preview https://deploy-preview-3844--hyprnote.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link
Contributor Author

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

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.

1 participant