From cc5b4977f3715a6726536ffdeb4ebdf3b5e8c61c Mon Sep 17 00:00:00 2001 From: BaptisteLongy <52977737+BaptisteLongy@users.noreply.github.com> Date: Sat, 8 Jun 2024 15:51:06 +0200 Subject: [PATCH] fix: scale table width with roster length (#114) --- .../party-planner/party-planner/party-planner.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/app/pages/party-planner/party-planner/party-planner.component.ts b/apps/client/src/app/pages/party-planner/party-planner/party-planner.component.ts index 2d129f09..eecf5a3d 100644 --- a/apps/client/src/app/pages/party-planner/party-planner/party-planner.component.ts +++ b/apps/client/src/app/pages/party-planner/party-planner/party-planner.component.ts @@ -234,7 +234,7 @@ export class PartyPlannerComponent { y: `${window.innerHeight - 64 - 48 - 180}px` }; if (roster.characters.length > 8) { - scroll.x = `${window.innerWidth - 80 - 48}px`; + scroll.x = `${window.innerWidth + roster.characters.length * 80}px`; } return scroll; })