mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-25 22:15:09 +00:00
fix: address PR feedback (thanks @bvaughn!)
This commit is contained in:
@@ -6,15 +6,21 @@ import CodeEditor from '../CodeEditor/CodeEditor';
|
||||
|
||||
class CodeExample extends Component {
|
||||
render() {
|
||||
const {children, code, loaded} = this.props;
|
||||
const {children, code, id, loaded} = this.props;
|
||||
return (
|
||||
<div
|
||||
id={id}
|
||||
css={{
|
||||
marginTop: 40,
|
||||
|
||||
'&:first-child': {
|
||||
marginTop: 0,
|
||||
},
|
||||
|
||||
'& .react-live': {
|
||||
width: '100%',
|
||||
},
|
||||
|
||||
[media.greaterThan('xlarge')]: {
|
||||
display: 'flex',
|
||||
flexDirection: 'row',
|
||||
@@ -29,7 +35,6 @@ class CodeExample extends Component {
|
||||
<div
|
||||
css={{
|
||||
flex: '0 0 33%',
|
||||
|
||||
[media.lessThan('xlarge')]: {
|
||||
marginBottom: 20,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user