From fe9c8b99a7a32ee3687b647de54d0894602d5431 Mon Sep 17 00:00:00 2001 From: Daniel Shleifman Date: Thu, 3 Jun 2021 15:25:31 +0300 Subject: [PATCH 1/3] scroll message fix --- .../components/DialogTorrentDetailsContent/TorrentCache.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/components/DialogTorrentDetailsContent/TorrentCache.jsx b/web/src/components/DialogTorrentDetailsContent/TorrentCache.jsx index 2c7ce08..01fca10 100644 --- a/web/src/components/DialogTorrentDetailsContent/TorrentCache.jsx +++ b/web/src/components/DialogTorrentDetailsContent/TorrentCache.jsx @@ -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 ( setDimensions(bounds)}> {({ measureRef }) => ( -
+
Date: Thu, 3 Jun 2021 15:33:46 +0300 Subject: [PATCH 2/3] refactor --- web/src/components/DialogTorrentDetailsContent/TorrentCache.jsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/web/src/components/DialogTorrentDetailsContent/TorrentCache.jsx b/web/src/components/DialogTorrentDetailsContent/TorrentCache.jsx index 01fca10..4d09b86 100644 --- a/web/src/components/DialogTorrentDetailsContent/TorrentCache.jsx +++ b/web/src/components/DialogTorrentDetailsContent/TorrentCache.jsx @@ -43,8 +43,6 @@ const TorrentCache = memo( updateStageSettings(12, 2) }, [isMini, dimensions.width]) - console.log(dimensions.height) - const miniCacheMaxHeight = 340 const { boxHeight, strokeWidth, marginBetweenBlocks, stageOffset } = stageSettings From 892fa2fec1ed68ae074db06c2b74361a65066646 Mon Sep 17 00:00:00 2001 From: Daniel Shleifman Date: Thu, 3 Jun 2021 15:35:19 +0300 Subject: [PATCH 3/3] refactor --- web/src/components/Settings.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web/src/components/Settings.jsx b/web/src/components/Settings.jsx index 5c02433..ab6f269 100644 --- a/web/src/components/Settings.jsx +++ b/web/src/components/Settings.jsx @@ -237,10 +237,12 @@ export default function SettingsDialog() { />
} - label='Remove cache from disk on drop torrent' + control={ + + } + label='Remove cache from disk on drop torrent' /> -
+
If disabled, remove cache on delete torrent