1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fixing VirtualList scrollbar style

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-06-30 13:24:14 +03:00
parent aa86e5a41e
commit 09503e8d6d
2 changed files with 5 additions and 8 deletions

View File

@ -19,10 +19,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
.VirtualList {
overflow: hidden;
> .list {
overflow-y: overlay!important;
}
.list {
/* Render scrollbar in content area, preventing to occupy extra space */
overflow-y: overlay!important;
}

View File

@ -21,7 +21,7 @@
// Wrapper for "react-window" component
// API docs: https://react-window.now.sh
import "./virtual-list.scss";
import styles from "./virtual-list.module.css";
import React, { Component } from "react";
import { observer } from "mobx-react";
@ -107,7 +107,7 @@ export class VirtualList extends Component<Props, State> {
<AutoSizer disableWidth>
{({ height }) => (
<VariableSizeList
className="list"
className={styles.list}
width={width}
height={height}
itemSize={this.getItemSize}