scroll fixed

This commit is contained in:
Daniel Shleifman
2021-06-03 15:18:10 +03:00
parent 0cc917fd6b
commit 3c0cab2992

View File

@@ -13,6 +13,7 @@ const ScrollNotification = styled.div`
margin-top: 10px; margin-top: 10px;
text-transform: uppercase; text-transform: uppercase;
color: rgba(0, 0, 0, 0.5); color: rgba(0, 0, 0, 0.5);
align-self: center;
` `
const TorrentCache = memo( const TorrentCache = memo(
@@ -65,7 +66,7 @@ const TorrentCache = memo(
return ( return (
<Measure bounds onResize={({ bounds }) => setDimensions(bounds)}> <Measure bounds onResize={({ bounds }) => setDimensions(bounds)}>
{({ measureRef }) => ( {({ measureRef }) => (
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }} ref={measureRef}> <div style={{ display: 'flex', flexDirection: 'column' }} ref={measureRef}>
<DialogContent <DialogContent
{...(isMini {...(isMini
? { style: { padding: 0, maxHeight: `${miniCacheMaxHeight}px`, overflow: 'auto' } } ? { style: { padding: 0, maxHeight: `${miniCacheMaxHeight}px`, overflow: 'auto' } }