scroll message fix

This commit is contained in:
Daniel Shleifman
2021-06-03 15:25:31 +03:00
parent fea50eee53
commit fe9c8b99a7

View File

@@ -43,6 +43,8 @@ const TorrentCache = memo(
updateStageSettings(12, 2)
}, [isMini, dimensions.width])
console.log(dimensions.height)
const miniCacheMaxHeight = 340
const { boxHeight, strokeWidth, marginBetweenBlocks, stageOffset } = stageSettings
@@ -66,8 +68,9 @@ const TorrentCache = memo(
return (
<Measure bounds onResize={({ bounds }) => setDimensions(bounds)}>
{({ measureRef }) => (
<div style={{ display: 'flex', flexDirection: 'column' }} ref={measureRef}>
<div style={{ display: 'flex', flexDirection: 'column' }}>
<DialogContent
ref={measureRef}
{...(isMini
? { style: { padding: 0, maxHeight: `${miniCacheMaxHeight}px`, overflow: 'auto' } }
: { style: { padding: 0 } })}