digitallyinduced / ihp

🔥 The fastest way to build type safe web apps. IHP is a new batteries-included web framework optimized for longterm productivity and programmer happiness
https://ihp.digitallyinduced.com/
MIT License
4.92k stars 195 forks source link

error screen: links style makes them hard to read #998

Closed CSchank closed 3 years ago

CSchank commented 3 years ago

I am guessing these are meant to have newlines or at least spaces between them. Might be a regression.

image

mpscholten commented 3 years ago

I guess this only happens when you make a change that causes the compiling screen to be shown (e.g. a type or syntax error). Then the live reload will refresh the page, get's the error message and morphdoms to the new page. But it will not morphdom the <head> (only the body), so the css is not loaded as expected.

mpscholten commented 3 years ago

E.g. here's how this looks for me when I first start the app successfully and then insert a syntax error:

image

When I now do full page refresh, this is how it looks:

image

CSchank commented 3 years ago

Yes, that's how the page looks if I do a full refresh. So, this is a morphdom problem? Is this related to my question on Gitter about how it interacts with other JS things, like Elm? It definitely seems a bit glitchy in certain edge cases.

mpscholten commented 3 years ago

Fixed 👍