hide scroller

This commit is contained in:
Hristo Nedelkov 2023-11-09 11:57:14 +02:00
parent 5e7e18b8e9
commit 4cfb809ecd
2 changed files with 16 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import { Text } from '@status-im/components'
import { useEffect, useState } from 'react' import { useEffect, useState } from 'react'
import { FixedSizeList as List } from 'react-window' import { FixedSizeList as List } from 'react-window'
import InfiniteLoader from 'react-window-infinite-loader' import InfiniteLoader from 'react-window-infinite-loader'
import './scroller.css'
import { Stack, XStack } from 'tamagui' import { Stack, XStack } from 'tamagui'
type DataType = { type DataType = {
@ -17,7 +17,7 @@ interface RowProps {
const Row: React.FC<RowProps> = ({ data, index }) => { const Row: React.FC<RowProps> = ({ data, index }) => {
if (!data) { if (!data) {
return <Text size={19} >Loading...</Text> return <Text size={19}>Loading...</Text>
} }
const { option, description } = data const { option, description } = data
@ -706,6 +706,7 @@ const LogsTerminal: React.FC = () => {
> >
{({ onItemsRendered, ref }: any) => ( {({ onItemsRendered, ref }: any) => (
<List <List
className="custom-scroll"
height={650} height={650}
width={1100} width={1100}
itemCount={data.length} itemCount={data.length}
@ -713,7 +714,10 @@ const LogsTerminal: React.FC = () => {
itemData={data} itemData={data}
onItemsRendered={onItemsRendered} onItemsRendered={onItemsRendered}
ref={ref} ref={ref}
style={{ borderRadius: '25px', overflow: 'hidden', border: '1px solid #E7EAEE' }} style={{
borderRadius: '25px',
border: '1px solid #E7EAEE',
}}
> >
{({ index, style }) => ( {({ index, style }) => (
<Stack style={style}> <Stack style={style}>

View File

@ -0,0 +1,9 @@
.custom-scroll {
overflow: auto !important;
scrollbar-width: none;
-ms-overflow-style: none;
}
.custom-scroll::-webkit-scrollbar {
display: none;
}