updated horizontal width to accomodate all icons

This commit is contained in:
CPTN Cosmo 2026-07-12 02:29:09 +02:00
parent 7a20b05c76
commit 318498489b

View file

@ -212,9 +212,9 @@ Hooks.once("init", () => {
let cols = Math.round((w - padX + gapX) / (skullW + gapX));
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 perfectH = rows * skullH + (rows - 1) * gapY + padY + headerH;
const perfectH = rows * skullH + (rows - 1) * gapY + padY + headerH + 2;
return {
width: perfectW,