microsoft / microsoft/pxt

max height for code snippets

Open
#6,010 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

docs2.0 in discussion
Dominant language
TypeScript
Stars
2.3k
Forks
641
Avg merge
12h 4m
Merged PRs (30d)
57

Description

some of the snippets that are particularly long make the page hard to follow (especially in arcade for snippets with images); it might be nice to had a max-height: 40em or something of the sort to the text code snippets so they are available without making the page > 2x as long per expanded snippet.

2019-10-04 11 18 27

2019-10-04 11 18 52

Maybe also for block snippets that are super large, but that might be more debatable?

2019-10-04 11 24 51

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

Start by locating the frontend rendering and styles for expanded text code snippets, especially in Arcade, then reproduce the long-snippet behavior shown in the issue. The work is done when long text snippets have a bounded height without making pages excessively long; whether to apply the same treatment to large block snippets remains undecided.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.