|
@@ -104,8 +104,10 @@ export function calculateThumbnailSizeForTileView({
|
104
|
104
|
// Minimum space to keep between the sides of the tiles and the sides
|
105
|
105
|
// of the window.
|
106
|
106
|
const sideMargins = 30 * 2;
|
|
107
|
+
|
|
108
|
+ const verticalMargins = visibleRows * 10;
|
107
|
109
|
const viewWidth = clientWidth - sideMargins;
|
108
|
|
- const viewHeight = clientHeight - topBottomPadding;
|
|
110
|
+ const viewHeight = clientHeight - topBottomPadding - verticalMargins;
|
109
|
111
|
const initialWidth = viewWidth / columns;
|
110
|
112
|
const aspectRatioHeight = initialWidth / TILE_ASPECT_RATIO;
|
111
|
113
|
const height = Math.floor(Math.min(aspectRatioHeight, viewHeight / visibleRows));
|