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

fix(watch): trim tl;dr and do not justify it on mobile #11

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

gdarchen
Copy link
Owner

@gdarchen gdarchen commented Jul 1, 2024

🎯 Goal

I had issues with watchResources whose tl;dr was ending by a . causing the app to add a . thus displaying a . ..

Moreover, there is a bug on Safari on mobile when justifying a text on which a line-clamp (multi-line ellipsis) was applied.

🧠 Approach

I made sure to trim() the tl;dr before checking if a closing . is necessary.

I also make sure to justify the tl;dr on md breakpoint only.

@gdarchen gdarchen self-assigned this Jul 1, 2024
Copy link

vercel bot commented Jul 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gautier ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 1, 2024 7:23am

@gdarchen gdarchen merged commit a1554e5 into main Jul 1, 2024
4 checks passed
@gdarchen gdarchen deleted the fix/text-justify-mobile branch July 1, 2024 07:23
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