small layout changes in downloads table
This commit is contained in:
@@ -27,7 +27,6 @@ import { useRPC } from '../hooks/useRPC'
|
|||||||
import { RPCResult } from '../types'
|
import { RPCResult } from '../types'
|
||||||
import { base64URLEncode, formatSize, formatSpeedMiB } from "../utils"
|
import { base64URLEncode, formatSize, formatSpeedMiB } from "../utils"
|
||||||
|
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
width: 8,
|
width: 8,
|
||||||
@@ -199,7 +198,7 @@ const DownloadsTableView: React.FC = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box style={{ height: '80vh', width: '100%' }}>
|
<Box style={{ height: downloads.length === 0 ? '0vh' : '80vh', width: '100%' }}>
|
||||||
<TableVirtuoso
|
<TableVirtuoso
|
||||||
hidden={downloads.length === 0}
|
hidden={downloads.length === 0}
|
||||||
data={downloads}
|
data={downloads}
|
||||||
|
|||||||
Reference in New Issue
Block a user