You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the introduction of the svelte/reactivity/window package (sveltejs/svelte#14660), we can notice CSS issues in the docs with such large non-wrappable titles.
After digging a bit into the CSS, I initially tried to solve this by using the overflow-wrap: break-word property. However, it doesn't really look good and is too "abrupt".
I then stumbled upon a StackOverflow answer, which suggested using the HTML element I never heard of called <wbr> (word break). It really looks like the right solution.
However, it requires interpreting HTML, and using {@html inside the <h1> tag also leads to rendering component-titles like <svelte:window>, which is definitely not what we want!
As a result, I don't know what the best solution is here, which is why I opened an issue instead of a PR.
Initial state
overflow-wrap
<wbr> after slashes
What do you think?
The text was updated successfully, but these errors were encountered:
With the introduction of the
svelte/reactivity/window
package (sveltejs/svelte#14660), we can notice CSS issues in the docs with such large non-wrappable titles.After digging a bit into the CSS, I initially tried to solve this by using the
overflow-wrap: break-word
property. However, it doesn't really look good and is too "abrupt".I then stumbled upon a StackOverflow answer, which suggested using the HTML element I never heard of called
<wbr>
(word break). It really looks like the right solution.However, it requires interpreting HTML, and using
{@html
inside the<h1>
tag also leads to rendering component-titles like<svelte:window>
, which is definitely not what we want!As a result, I don't know what the best solution is here, which is why I opened an issue instead of a PR.
overflow-wrap
<wbr>
after slashesWhat do you think?
The text was updated successfully, but these errors were encountered: