Web:Client:Home: add check for zero width

This commit is contained in:
Timofey Boyko 2023-03-28 10:46:36 +03:00
parent bec19bb207
commit 2bd0c6e4e3

View File

@ -67,6 +67,8 @@ const FilesTileContainer = ({
const { width } = node.getBoundingClientRect();
if (width === 0) return;
const size = thumbnails1280x720 ? "1280x720" : getThumbSize(width);
const widthWithoutPadding = width - 32;