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

Handle splitting of long URLs so that the overall text occupies space per configuration #68

Open
pbelbin opened this issue Apr 17, 2023 · 3 comments

Comments

@pbelbin
Copy link

pbelbin commented Apr 17, 2023

I have seen some cases where a long URL is limiting the increase of font size because it is not being split. If the URL were able to be broken up, then the text would grow in font size to be larger, to fill the available box space.

Can this be accommodated?

@STRML
Copy link
Owner

STRML commented Apr 17, 2023 via email

@pbelbin
Copy link
Author

pbelbin commented Apr 21, 2023

Thank you for the tip!

OK, but, if you do that to the entire element, then every word in the paragraph, for example, get's treated that way. It would be really good if there was a flag that enables the ability to automagically identify portions of the displayed content that is a URL over a certain size, and if found, wrap that with a 'span' that itself has the 'word-break: break-all' style, so that only the URL has that, not everything. But, perhaps that's something that will be expected to be handled externally.

@STRML
Copy link
Owner

STRML commented Apr 21, 2023 via email

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

No branches or pull requests

2 participants