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) issue #1375 -- header size dynamically adjusted #1380

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Radu-Nicolae
Copy link

@Radu-Nicolae Radu-Nicolae commented Sep 18, 2024

🚀 (fix) issue #1375 -- header size dynamically adjusted

Issue

"The size of the header is computed with a mathematical function and passed further to react. This way the header does not wrap around for single words that are long. However, it still wraps around for phrases."

Solution

With this PR, the size of the header is computed with a mathematical function and passed further to react. This way, the header does not wrap around for long single words; the functionality of text wrapping around for phrases is still maintained.

See appendix below.

Type of Change

  • 🐛 Bug fix (non-breaking change)
  • ✨ New feature (non-breaking change)
  • ⚠️ Breaking change
  • 📚 Documentation update

This activity is supported by the Network Institute, Vrije Universiteit Amsterdam, under the Code for Humanity initiative.

Appendix

Initially

Screenshot 2024-09-17 at 7 48 22 PM

Text from template

Screenshot 2024-09-17 at 8 32 32 PM

4 letter word (<5 threshold)

Screenshot 2024-09-17 at 8 32 52 PM

>=5 letter-threshold

Screenshot 2024-09-17 at 8 32 59 PM

14 letter word (3% of the English words have >=letters, 0.02% have >=14 letters)

Screenshot 2024-09-17 at 8 33 10 PM

A bit towards extreme

Screenshot 2024-09-17 at 8 33 20 PM

"ABCDE FGHIJKLM NOPQRSTU" (3 longer words)

Screenshot 2024-09-17 at 8 33 34 PM

The size of the header is computed with a mathematical function and passed further to react. This way the header does not wrap around for single words that are long. However, it still wraps around for phrases.
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