Skip to content

affordance for full-width code blocks #1981

@cellio

Description

@cellio

meta:295243
meta:294306 (the request is different but the root cause is the same)

80 characters is a common width for code blocks, but in our standard styling, even on desktop, we usually can't show that much without horizontal scrolling. The linked meta posts propose some ways to work around this but they might cause other problems. Instead of playing whack-a-mole with font sizes, margins, etc, can we add a control to code blocks to, when activated, show the block using the full width (overlaying the right column)? I have the impression that it would be more useful to users if we could do that "in-page", but if it had to be a modal overlay, that could work so long as it's scrollable and copyable.

Raised in a comment: if the browser window is wide enough to have space to the left, should we use that? Before beginning work on this, we should ask for feedback from the community.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions