From 616473d8a4ee6fa155fefc9bbdbed8faddc65167 Mon Sep 17 00:00:00 2001 From: Nick Beckley Date: Tue, 3 Nov 2026 19:56:10 +0000 Subject: [PATCH] Centre the floor plan index panels within their page shell --- PlotLine.Tests/Browser/workspace-refinements-dev.cjs | 2 +- PlotLine/Views/FloorPlans/Index.cshtml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/PlotLine.Tests/Browser/workspace-refinements-dev.cjs b/PlotLine.Tests/Browser/workspace-refinements-dev.cjs index fcada072..8b43b232 100644 --- a/PlotLine.Tests/Browser/workspace-refinements-dev.cjs +++ b/PlotLine.Tests/Browser/workspace-refinements-dev.cjs @@ -27,7 +27,7 @@ const base='https://dev.plotdirector.com',root=`${base}/Maps?projectId=${f.Proje await page.screenshot({path:`/tmp/workspace-${id}-${pwa?'pwa':'web'}-max.png`}); await page.locator('#'+id).click();await page.waitForTimeout(150);assert.deepEqual(await page.evaluate(snapshot),before);assert.equal(await page.locator('.pd-application-header').evaluate(n=>getComputedStyle(n).visibility),'visible'); } - await page.goto(`${base}/FloorPlans?projectId=${f.ProjectID}`);const index=await page.locator('.floor-plan-index-shell').boundingBox();assert(index.width<=1201);assert(Math.abs(index.x-(1800-index.width)/2)<2); + await page.goto(`${base}/FloorPlans?projectId=${f.ProjectID}`);const index=await page.locator('.floor-plan-index-shell').boundingBox();assert(index.width<=1201);assert(Math.abs(index.x-(1800-index.width)/2)<2);const card=await page.locator('.floor-plan-index-shell > .edit-panel').first().boundingBox();assert(Math.abs(card.x+card.width/2-900)<2,'Create form itself must be centred'); await page.screenshot({path:`/tmp/workspace-floor-index-${pwa?'pwa':'web'}.png`}); await page.goto(`${base}/FloorPlans/Edit/${f.FloorPlanID}`);await page.waitForFunction(()=>document.querySelector('[data-floor-plan-editor]')?.dataset.floorPlanInitialized==='true'); assert((await page.locator('[data-floor-plan-workspace]').boundingBox()).width>1750); diff --git a/PlotLine/Views/FloorPlans/Index.cshtml b/PlotLine/Views/FloorPlans/Index.cshtml index 66a147f5..46485609 100644 --- a/PlotLine/Views/FloorPlans/Index.cshtml +++ b/PlotLine/Views/FloorPlans/Index.cshtml @@ -5,7 +5,8 @@ ViewData["ProjectSection"] = "Floor Plans"; } - +