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

Message table too wide on mobile browsers #348

Open
david-christiansen opened this issue Oct 20, 2022 · 1 comment
Open

Message table too wide on mobile browsers #348

david-christiansen opened this issue Oct 20, 2022 · 1 comment
Labels
css An issue or task on the generated sites' CSS error-message-index-site

Comments

@david-christiansen
Copy link
Contributor

The table of messages on the front page of the generated site is too wide on mobile browsers:
Screenshot_20221020-190136_Firefox

Perhaps the number and message fields can be stacked, and the "since" field omitted on very narrow screens?

@klequis
Copy link
Contributor

klequis commented Nov 30, 2022

I looked around for different methods for making tables responsive. The short story is they aren't very responsive but there are a handfull of tricks out there to help.

The solution I see most often suggested is Responsive Data Tables.

Here is a working mockup: http://haskell-error-index.s3-website-us-west-2.amazonaws.com/
I just did a quick tweak of the example without changing any of the formatting, so it doesn't look like a Haskell site and there is lots of wasted space. However, it does demonstrate the functionality.

I would like to suggest that the column labels (now kind of row labels) add little value in the small screen layout and think eliminating them in favor of having one column would improve readability and decrease vertical scroll. Messages would be separated visually by the alternating gray/whit background as in the example. Let me know what you think.

All the code for the example is in these two files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css An issue or task on the generated sites' CSS error-message-index-site
Projects
None yet
Development

No branches or pull requests

2 participants