Skip to content

Commit

Permalink
fix: use gap var
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 committed Oct 30, 2024
1 parent cba7664 commit 04c1ab6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ export const useTileLayout = ({
// Beam layout breaks at 480p resolution because the gap of $4 between tiles is not accounted for
// There could be more such cases, this is a generic fix
for (let i = 0; i < row.length; i++) {
row[i].width = tileWidth - (8 / maxCols) * (maxCols - 1);
row[i].height = tileHeight - (8 / maxRows) * (maxRows - 1);
row[i].width = tileWidth - (gap / maxCols) * (maxCols - 1);
row[i].height = tileHeight - (gap / maxRows) * (maxRows - 1);
}
}
}
Expand Down

0 comments on commit 04c1ab6

Please sign in to comment.