Virtualize search results - only render what's visible
This commit is contained in:
parent
9d4f2afa5a
commit
6292019d30
19 changed files with 1633 additions and 438 deletions
|
@ -7,6 +7,7 @@ interface Props {
|
|||
*/
|
||||
theme: 'light-theme' | 'dark-theme';
|
||||
style: any;
|
||||
gutterStyle: any;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -15,11 +16,13 @@ interface Props {
|
|||
*/
|
||||
export class LeftPaneContext extends React.Component<Props> {
|
||||
public render() {
|
||||
const { style, theme } = this.props;
|
||||
const { gutterStyle, style, theme } = this.props;
|
||||
|
||||
return (
|
||||
<div style={style} className={classNames(theme || 'light-theme')}>
|
||||
<div className="gutter">{this.props.children}</div>
|
||||
<div className="gutter" style={gutterStyle}>
|
||||
{this.props.children}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue