mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 05:29:37 +08:00
💄 site: fix extra space in demo code box
This commit is contained in:
parent
66366cfe18
commit
ba1e305368
@ -13,13 +13,9 @@ export default class ComponentDoc extends React.Component {
|
|||||||
intl: PropTypes.object,
|
intl: PropTypes.object,
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(props) {
|
state = {
|
||||||
super(props);
|
expandAll: false,
|
||||||
|
};
|
||||||
this.state = {
|
|
||||||
expandAll: false,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
handleExpandToggle = () => {
|
handleExpandToggle = () => {
|
||||||
const { expandAll } = this.state;
|
const { expandAll } = this.state;
|
||||||
|
@ -301,8 +301,7 @@ ${sourceCode.replace('mountNode', "document.getElementById('container')")}
|
|||||||
{highlightedStyle ? (
|
{highlightedStyle ? (
|
||||||
<div key="style" className="highlight">
|
<div key="style" className="highlight">
|
||||||
<pre>
|
<pre>
|
||||||
<code className="css" dangerouslySetInnerHTML={{ __html: highlightedStyle }} />{' '}
|
<code className="css" dangerouslySetInnerHTML={{ __html: highlightedStyle }} />
|
||||||
{/* eslint-disable-line */}
|
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
|
Loading…
Reference in New Issue
Block a user