Skip to content

Mobile dark mode text overflow unreadable #1167

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

Closed
aaronallen8455 opened this issue Jan 22, 2023 · 3 comments
Closed

Mobile dark mode text overflow unreadable #1167

aaronallen8455 opened this issue Jan 22, 2023 · 3 comments

Comments

@aaronallen8455
Copy link

I'm using chrome on my android phone and whenever text runs past the width of the screen, the dark mode background color does not extend past a single screen width resulting in white on white text.

Screenshot_20230122-101724

@gbaz
Copy link
Contributor

gbaz commented Jan 23, 2023

@peterbecich thoughts?

@phadej
Copy link
Contributor

phadej commented Jan 23, 2023

The problem&answer is right at the top of hackage.css

html {
  background-color: white;
  width: 100%;
  height: 100%;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #333;
    color: #fefefe;
  }
}
@media (prefers-color-scheme: light) {
  body {
    background: #fefefe;
    color: #333;
  }
}

peterbecich added a commit to peterbecich/hackage-server that referenced this issue Jan 29, 2023
@peterbecich
Copy link
Member

Thanks @aaronallen8455 and @phadej , I think it is fixed: #1163 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants