scroll added to mini cache

This commit is contained in:
Daniel Shleifman
2021-06-03 13:21:38 +03:00
parent 5a09fc8fcc
commit 1bf8ee14de

View File

@@ -57,7 +57,11 @@ const TorrentCache = memo(
<Measure bounds onResize={({ bounds }) => setDimensions(bounds)}> <Measure bounds onResize={({ bounds }) => setDimensions(bounds)}>
{({ measureRef }) => ( {({ measureRef }) => (
<div ref={measureRef}> <div ref={measureRef}>
<DialogContent style={{ padding: 0 }}> <DialogContent
{...(isMini
? { style: { padding: 0, maxHeight: '340px', overflow: 'auto' } }
: { style: { padding: 0 } })}
>
<Stage <Stage
style={{ display: 'flex', justifyContent: 'center' }} style={{ display: 'flex', justifyContent: 'center' }}
offset={{ x: -stageOffset, y: -stageOffset }} offset={{ x: -stageOffset, y: -stageOffset }}