Increase RESIZER_BOX_FACTOR to account for overlap from handle
Fixes https://github.com/vector-im/riot-web/issues/14136 The resizer handle wasn't being considered in this. 78% is both verified through mathematics and playing with it manually.
This commit is contained in:
parent
7674030c6e
commit
8cfbfd4221
1 changed files with 3 additions and 3 deletions
|
@ -18,9 +18,9 @@ import { TagID } from "./models";
|
||||||
|
|
||||||
const TILE_HEIGHT_PX = 44;
|
const TILE_HEIGHT_PX = 44;
|
||||||
|
|
||||||
// the .65 comes from the CSS where the show more button is
|
// this comes from the CSS where the show more button is
|
||||||
// mathematically 65% of a tile when floating.
|
// mathematically this percent of a tile when floating.
|
||||||
const RESIZER_BOX_FACTOR = 0.65;
|
const RESIZER_BOX_FACTOR = 0.78;
|
||||||
|
|
||||||
interface ISerializedListLayout {
|
interface ISerializedListLayout {
|
||||||
numTiles: number;
|
numTiles: number;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue