mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +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,
|
||||
};
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this.state = {
|
||||
expandAll: false,
|
||||
};
|
||||
}
|
||||
state = {
|
||||
expandAll: false,
|
||||
};
|
||||
|
||||
handleExpandToggle = () => {
|
||||
const { expandAll } = this.state;
|
||||
|
@ -301,8 +301,7 @@ ${sourceCode.replace('mountNode', "document.getElementById('container')")}
|
||||
{highlightedStyle ? (
|
||||
<div key="style" className="highlight">
|
||||
<pre>
|
||||
<code className="css" dangerouslySetInnerHTML={{ __html: highlightedStyle }} />{' '}
|
||||
{/* eslint-disable-line */}
|
||||
<code className="css" dangerouslySetInnerHTML={{ __html: highlightedStyle }} />
|
||||
</pre>
|
||||
</div>
|
||||
) : null}
|
||||
|
Loading…
Reference in New Issue
Block a user