popcode icon indicating copy to clipboard operation
popcode copied to clipboard

Editor labels can overlap long lines of code

Open outoftime opened this issue 8 years ago • 1 comments

Submitter: Courtney LeGates Email: [email protected] Can you please make the HTML/CSS/JavaScript boxes smaller so that there is less of a chance of overlap with the first line of code?

image

outoftime avatar Aug 22 '17 16:08 outoftime

I personally feel there's no better way of doing it than to move the content down so it never bumps into the label box. Yes, you take a hit on vertical space efficiency, but you gain ultimate clarity. This could be mitigated by making them a little smaller. In which case, they would probably look better over on the left.

What I like to do is check out how other products in the space handle a similar pattern. Here's what I found:

Codepen

Bars take up their own space. Code never runs into them. screenshot 2017-11-13 17 37 34

JSFiddle

Code labels are slightly translucent. screenshot 2017-11-13 17 37 52

JSBin

Bars take up their own space. Code never runs into them. screenshot 2017-11-13 17 38 16

Visual Studio Code

Code label is on its own tab. Takes up its own space. screenshot 2017-11-13 17 39 28

iamnickvolpe avatar Nov 13 '17 22:11 iamnickvolpe