diff --git a/src/renderer/components/dock/log-list.scss b/src/renderer/components/dock/log-list.scss index edae55ad61..ab6bdc7ad3 100644 --- a/src/renderer/components/dock/log-list.scss +++ b/src/renderer/components/dock/log-list.scss @@ -35,7 +35,7 @@ .VirtualList { height: 100%; - .list { + .listElement { overflow-x: scroll!important; .LogRow { diff --git a/src/renderer/components/dock/log-list.tsx b/src/renderer/components/dock/log-list.tsx index 9437a854e2..410fd85f83 100644 --- a/src/renderer/components/dock/log-list.tsx +++ b/src/renderer/components/dock/log-list.tsx @@ -262,6 +262,7 @@ export class LogList extends React.Component { outerRef={this.virtualListDiv} ref={this.virtualListRef} className="box grow" + listClassName="listElement" /> {this.isJumpButtonVisible && ( diff --git a/src/renderer/components/virtual-list/virtual-list.tsx b/src/renderer/components/virtual-list/virtual-list.tsx index 0cc70f2cd6..c048328834 100644 --- a/src/renderer/components/virtual-list/virtual-list.tsx +++ b/src/renderer/components/virtual-list/virtual-list.tsx @@ -44,6 +44,7 @@ interface Props { getRow?: (uid: string | number) => React.ReactElement; onScroll?: (props: ListOnScrollProps) => void; outerRef?: React.Ref + listClassName?: string; } interface State { @@ -95,7 +96,7 @@ export class VirtualList extends Component { }; render() { - const { width, className, items, getRow, onScroll, outerRef } = this.props; + const { width, className, items, getRow, onScroll, outerRef, listClassName } = this.props; const { overscanCount } = this.state; const rowData: RowData = { items, @@ -107,7 +108,7 @@ export class VirtualList extends Component { {({ height }) => (