tangram-play
tangram-play copied to clipboard
increase top margin on embedded code pane
In embed mode the padding on the top of the editor feels a bit tight compared to the bottom:


I was able to adjust this by adding margin-top: 8px;
to the .CodeMirror-scroll
div, but then the bottom margin isn't right. :man_shrugging:
Does the editor scroll? Is the extra space below line 18 the space left over in the editor because it's not quite the iframe height, or is that extra bottom margin always there on each embed?
Is the actual request "I think the top margin is too tight" or "I would like the top and bottom margins to match" ?
The margin at the bottom is in a scrolled editor. In an unscrolled editor, the bottom space would be dependent on the number of lines in the pane.
Is the actual request "I think the top margin is too tight" or "I would like the top and bottom margins to match" ?
Both!