Skip to content

x/website: new playground leaves little vertical space for the editor #49769

@mvdan

Description

@mvdan

On my 16:9 screen, less than a third of my screen's vertical space is used for seeing or editing code:

image

There are two banners, the vertical space for the title and buttons, another nearly-third of the page for the output, and then I can even start seeing some of "about the playground".

I really think the code deserves as much vertical space as we can give it. Especially with longer examples, or examples containing multiple files via txtar, having to scroll around while viewing just 17 lines at a time is painful.

The old playground didn't have this issue (got an old screenshot from google, because play.golang.org no longer exists):

image

In particular:

  1. It only had one "banner" at the top, using about a third the amount of vertical space.
  2. The content reached all the way to the bottom.
  3. The input was given much more space than the output.

cc @dmitshur

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions