Give tiles a minimum area rather than a minimum width and height (#2513)
This seems to result in more sensible cropping and allocation of space across the board, in my testing.
This commit is contained in:
@@ -75,7 +75,9 @@ export const makeSpotlightPortraitLayout: CallLayout<
|
||||
const { width } = useObservableEagerState(minBounds);
|
||||
const { gap, tileWidth, tileHeight } = arrangeTiles(
|
||||
width,
|
||||
0,
|
||||
// TODO: We pretend that the minimum height is the width, because the
|
||||
// actual minimum height is difficult to calculate
|
||||
width,
|
||||
model.grid.length,
|
||||
);
|
||||
const tileModels: GridTileModel[] = useMemo(
|
||||
|
||||
Reference in New Issue
Block a user