lit / lit/lit.dev

Page at /docs/templates/directives/ does not seem responsive to thinner displays

Open
#1,293 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
142
Forks
230
PR merge metrics
No merged PRs in 30d

Description

If you navigate to https://lit.dev/docs/templates/directives/ and change the page to be narrow or a mobile viewport.

Note that long directive type signatures leak out the side of the page.
Screenshot 2024-01-12 at 2 13 23 PM

In the screenshot the contents of the article should stay within the red line.

My suggestion would be to add `overflow-x` on an appropriate container so the contents of the table can be scrolled left to right rather than overflowing the contents.

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.

Research direction

Open https://lit.dev/docs/templates/directives/ and reproduce the layout at a narrow or mobile viewport. Inspect the page container around the long directive type-signature table; it is done when the article stays within the viewport and the table can be scrolled horizontally instead of overflowing.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.