Web: Files: fixed getCountTilesInRow comment
This commit is contained in:
parent
2977365419
commit
4e75ea00da
@ -3956,7 +3956,7 @@ class FilesStore {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
//Duplicate of countTilesInRow, used to update the number of tiles in a row after the window is resized.
|
//Used to update the number of tiles in a row after the window is resized.
|
||||||
getCountTilesInRow = () => {
|
getCountTilesInRow = () => {
|
||||||
const isDesktopView = isDesktop();
|
const isDesktopView = isDesktop();
|
||||||
const isMobileView = isMobile();
|
const isMobileView = isMobile();
|
||||||
@ -3978,7 +3978,7 @@ class FilesStore {
|
|||||||
|
|
||||||
containerWidth += tileGap;
|
containerWidth += tileGap;
|
||||||
if (!isMobileView) containerWidth -= 1;
|
if (!isMobileView) containerWidth -= 1;
|
||||||
if (!isDesktopView) containerWidth += 3; //tablet tile margin -3
|
if (!isDesktopView) containerWidth += 3; //tablet tile margin -3px (TileContainer.js)
|
||||||
|
|
||||||
return Math.floor(containerWidth / minTileWidth);
|
return Math.floor(containerWidth / minTileWidth);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user