Symbols can cover up code on smartphones.

Open
#2,893 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
documentation

Research direction

Start with the linked Rust Book section on generic lifetimes in functions and inspect the rendering of code sections and their symbols on a narrow mobile viewport. Reproduce the overlap in Firefox on a smartphone-sized screen, then verify that the symbols no longer cover or prevent horizontal viewing of the longest code lines.

Written by the indexing model from the issue text.

Description

A-CSS Online only
  • I have checked the latest main branch to see if this has already been fixed
  • I have searched existing issues and pull requests for duplicates

URL to the section(s) of the book with this problem:
Any code-section with a long first line

Description of the problem:
Symbols such as run, Ferris or that eye-icon overlap with the code on mobile devices. This especially is a problem if the first line is the longest line, thus making it impossible to scoll all of it into view.

Suggested fix:
Add a button bar to the top of each code-section, that contains the necessary items.

Environment:
Device: Samsung Galaxy S9
Browser: Firefox

Screenshots:
Screenshot_20210919-191341_Fennec.jpg

Screenshot_20210919-192117_Fennec.jpg

Screenshot_20210919-192711_Fennec.jpg

Dominant language
Rust
Stars
18.3k
Forks
4.1k
Avg merge
14m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-lang/book

All issues in rust-lang/book

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.