updated horizontal width to accomodate all icons
This commit is contained in:
parent
7a20b05c76
commit
318498489b
1 changed files with 2 additions and 2 deletions
|
|
@ -212,9 +212,9 @@ Hooks.once("init", () => {
|
||||||
let cols = Math.round((w - padX + gapX) / (skullW + gapX));
|
let cols = Math.round((w - padX + gapX) / (skullW + gapX));
|
||||||
cols = Math.max(1, Math.min(maxFear, cols));
|
cols = Math.max(1, Math.min(maxFear, cols));
|
||||||
|
|
||||||
const perfectW = cols * skullW + (cols - 1) * gapX + padX;
|
const perfectW = cols * skullW + (cols - 1) * gapX + padX + 2;
|
||||||
const rows = Math.ceil(maxFear / cols);
|
const rows = Math.ceil(maxFear / cols);
|
||||||
const perfectH = rows * skullH + (rows - 1) * gapY + padY + headerH;
|
const perfectH = rows * skullH + (rows - 1) * gapY + padY + headerH + 2;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
width: perfectW,
|
width: perfectW,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue