Move buttons above the editor (#1128)
* Move buttons above the editor * Both solutions - one to be deleted * removed option 1
This commit is contained in:
parent
52002b5272
commit
41489e7135
@ -132,10 +132,6 @@ class Playground extends React.PureComponent<Props, State> {
|
||||
<section className='js--Content'>
|
||||
<Transition animation='glow' duration={700} visible={animated}>
|
||||
<article className='container js--Editor'>
|
||||
<Editor
|
||||
code={selected.code}
|
||||
onEdit={this.onEdit}
|
||||
/>
|
||||
<ActionButtons
|
||||
generateLink={this.generateLink}
|
||||
isCustomExample={isCustomExample}
|
||||
@ -146,9 +142,13 @@ class Playground extends React.PureComponent<Props, State> {
|
||||
snippetName={snippetName}
|
||||
stopJs={this.stopJs}
|
||||
/>
|
||||
<Editor
|
||||
code={selected.code}
|
||||
onEdit={this.onEdit}
|
||||
/>
|
||||
</article>
|
||||
</Transition>
|
||||
<Output logs={logs}>
|
||||
<Output logs={logs} >
|
||||
<Button
|
||||
className='action-button'
|
||||
icon='erase'
|
||||
|
||||
@ -66,12 +66,14 @@
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
min-width: calc(100% - 40px);
|
||||
padding-top: 50px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.codeflask__lines {
|
||||
background: #fafafa;
|
||||
line-height: 18px;
|
||||
padding-top: 50px;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
@ -99,7 +101,7 @@
|
||||
font-size: 12px;
|
||||
font-variant-ligatures: common-ligatures;
|
||||
line-height: 18px;
|
||||
padding: 10px;
|
||||
padding: 50px 10px 10px;
|
||||
position: relative;
|
||||
width: 40%;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user