mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix VirtualList styling in logs
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
09503e8d6d
commit
503439d9d7
@ -35,7 +35,7 @@
|
|||||||
.VirtualList {
|
.VirtualList {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
.list {
|
.listElement {
|
||||||
overflow-x: scroll!important;
|
overflow-x: scroll!important;
|
||||||
|
|
||||||
.LogRow {
|
.LogRow {
|
||||||
|
|||||||
@ -262,6 +262,7 @@ export class LogList extends React.Component<Props> {
|
|||||||
outerRef={this.virtualListDiv}
|
outerRef={this.virtualListDiv}
|
||||||
ref={this.virtualListRef}
|
ref={this.virtualListRef}
|
||||||
className="box grow"
|
className="box grow"
|
||||||
|
listClassName="listElement"
|
||||||
/>
|
/>
|
||||||
{this.isJumpButtonVisible && (
|
{this.isJumpButtonVisible && (
|
||||||
<JumpToBottom onClick={this.scrollToBottom} />
|
<JumpToBottom onClick={this.scrollToBottom} />
|
||||||
|
|||||||
@ -44,6 +44,7 @@ interface Props<T extends ItemObject = any> {
|
|||||||
getRow?: (uid: string | number) => React.ReactElement<any>;
|
getRow?: (uid: string | number) => React.ReactElement<any>;
|
||||||
onScroll?: (props: ListOnScrollProps) => void;
|
onScroll?: (props: ListOnScrollProps) => void;
|
||||||
outerRef?: React.Ref<any>
|
outerRef?: React.Ref<any>
|
||||||
|
listClassName?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface State {
|
interface State {
|
||||||
@ -95,7 +96,7 @@ export class VirtualList extends Component<Props, State> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
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 { overscanCount } = this.state;
|
||||||
const rowData: RowData = {
|
const rowData: RowData = {
|
||||||
items,
|
items,
|
||||||
@ -107,7 +108,7 @@ export class VirtualList extends Component<Props, State> {
|
|||||||
<AutoSizer disableWidth>
|
<AutoSizer disableWidth>
|
||||||
{({ height }) => (
|
{({ height }) => (
|
||||||
<VariableSizeList
|
<VariableSizeList
|
||||||
className={styles.list}
|
className={cssNames(styles.list, listClassName)}
|
||||||
width={width}
|
width={width}
|
||||||
height={height}
|
height={height}
|
||||||
itemSize={this.getItemSize}
|
itemSize={this.getItemSize}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user