Improve the layout on a phone
certik opened this issue · comments
Ondřej Čertík commented
On my iPhone, the site works, but I can only see the code window, I have to scroll down to see the output. So people might not realize there is an image output.
Shaikh Ubaid commented
lcompilers_frontend/pages/index.js
Lines 59 to 67 in 4bea658
It seems we might need a useEffect()
to accomplish this. We previous had this useEffect
as shown above.
Also, I came across this https://stackoverflow.com/questions/59494037/how-to-detect-the-device-on-react-ssr-app-with-next-js. It seems useful.
Ondřej Čertík commented
This is how it looks like on my iPhone now:
So I think the issue is fixed. Thanks a lot @Shaikh-Ubaid for fixing it!