diff --git a/web/src/components/DialogTorrentDetailsContent/TorrentCache/index.jsx b/web/src/components/DialogTorrentDetailsContent/TorrentCache/index.jsx index fbb1467..10c75fd 100644 --- a/web/src/components/DialogTorrentDetailsContent/TorrentCache/index.jsx +++ b/web/src/components/DialogTorrentDetailsContent/TorrentCache/index.jsx @@ -10,7 +10,7 @@ const TorrentCache = memo( const cacheMap = useCreateCacheMap(cache) const preloadPiecesAmount = Math.round(cache.Capacity / cache.PiecesLength - 1) - const isSnakeLarge = cacheMap.length > 5000 + const isSnakeLarge = cacheMap.length > 1000 return isMini ? ( diff --git a/web/src/components/DialogTorrentDetailsContent/index.jsx b/web/src/components/DialogTorrentDetailsContent/index.jsx index f4ee8b7..dc0fd45 100644 --- a/web/src/components/DialogTorrentDetailsContent/index.jsx +++ b/web/src/components/DialogTorrentDetailsContent/index.jsx @@ -117,7 +117,7 @@ export default function DialogTorrentDetailsContent({ closeDialog, torrent }) { <> setIsDetailedCacheView(false) })} /> @@ -190,7 +190,7 @@ export default function DialogTorrentDetailsContent({ closeDialog, torrent }) { size='large' onClick={() => setIsDetailedCacheView(true)} > - {t('DetailedCacheView')} + {t('DetailedCacheView.button')} diff --git a/web/src/locales/en/translation.json b/web/src/locales/en/translation.json index 4e8acca..10f75b5 100644 --- a/web/src/locales/en/translation.json +++ b/web/src/locales/en/translation.json @@ -19,7 +19,10 @@ "Delete": "Delete", "DeleteTorrent?": "Delete Torrent?", "DeleteTorrents?": "Delete All Torrents?", - "DetailedCacheView": "Detailed Cache View", + "DetailedCacheView": { + "button": "Detailed Cache View", + "header": "$t(DetailedCacheView.button)" + }, "Details": "Details", "DHT": "DHT (Distributed Hash Table)", "DhtConnectionLimit": "DHT Connection Limit", diff --git a/web/src/locales/ru/translation.json b/web/src/locales/ru/translation.json index fefc90e..a199027 100644 --- a/web/src/locales/ru/translation.json +++ b/web/src/locales/ru/translation.json @@ -19,7 +19,10 @@ "Delete": "Удалить", "DeleteTorrent?": "Удалить торрент?", "DeleteTorrents?": "Удалить все торренты?", - "DetailedCacheView": "Информация о заполнении кеша", + "DetailedCacheView": { + "button": "Информация о заполнении кеша", + "header": "Заполнение кеша" + }, "Details": "Инфо", "DHT": "DHT (Distributed Hash Table)", "DhtConnectionLimit": "Лимит подключений DHT",