alexwl / haskell-code-explorer

Web application for exploring and understanding Haskell codebases
MIT License
512 stars 20 forks source link

Make more mobile browser friendly #26

Open juhp opened 5 years ago

juhp commented 5 years ago

I just tried it for the first time, but happened to be on my phone - the layout (scrolling) is not so mobile browser friendly.

I am sure desktop browsing is the main target, maybe some smaller layout tweaks could improve the mobile experience. :)

seagreen commented 5 years ago

On my phone the main issue is that the file list takes up almost all the space by default. Once I hit "Hide" to the right of the file search box things are greatly improved, but I have to do that each time I go to haskell-code-explorer.

alexwl commented 5 years ago

Of course, the left panel should be hidden by default on small screens.

I've committed the fix (db54d0594b84966ec3568c90c4219abb60c2e41f) and updated haskell-code-explorer.mfix.io. I've also reduced initial-scale from 1 to 0.6 to fit more text on the screen.

Any suggestions on how to make the UI more mobile-friendly are welcome.

seagreen commented 5 years ago

Fixed on my phone!