mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-25 02:39:27 +00:00
hide scroller
This commit is contained in:
parent
5e7e18b8e9
commit
4cfb809ecd
@ -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}>
|
||||||
|
9
src/pages/LogsPage/scroller.css
Normal file
9
src/pages/LogsPage/scroller.css
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
.custom-scroll {
|
||||||
|
overflow: auto !important;
|
||||||
|
scrollbar-width: none;
|
||||||
|
-ms-overflow-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.custom-scroll::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user