From 17144c64d31b58eefa0400efaeec4e04e7e7388d Mon Sep 17 00:00:00 2001 From: Nick Beckley Date: Sun, 26 Jul 2026 15:27:49 +0000 Subject: [PATCH] Rebalance story stage after removing assets --- PlotLine.Tests/Program.cs | 2 ++ .../wwwroot/css/story-intelligence-experience-prototype.css | 2 +- PlotLine/wwwroot/js/story-intelligence-experience-prototype.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/PlotLine.Tests/Program.cs b/PlotLine.Tests/Program.cs index b514c77..46a6dca 100644 --- a/PlotLine.Tests/Program.cs +++ b/PlotLine.Tests/Program.cs @@ -1183,6 +1183,8 @@ static void Phase21RSceneBrowserAndPanelsAreReplayFriendly() Assert(css.Contains("--story-side-body-font-size: 0.72rem;", StringComparison.Ordinal), "Left and right side panels should share body text sizing."); Assert(!view.Contains("data-assets", StringComparison.Ordinal), "Asset visualisation lane should not be rendered on the main stage."); Assert(script.Contains("Assets are recorded in insights/diagnostics but not rendered as stage nodes.", StringComparison.Ordinal), "Asset data should remain available without drawing asset stage nodes."); + Assert(script.Contains("width * 0.70 - size / 2", StringComparison.Ordinal), "Location should use the former asset space once asset nodes are removed."); + Assert(css.Contains(".story-exp-zone--location .story-exp-zone-label {\n left: 67%;", StringComparison.Ordinal), "Location lane label should follow the rebalanced stage."); Assert(!css.Contains("grid-template-rows: minmax(218px, 1.35fr) minmax(185px, 1.08fr) auto", StringComparison.Ordinal), "Right rail must not use fixed-height panel tracks."); Assert(!css.Contains("grid-template-rows: auto auto minmax(170px, 1fr) minmax(96px, 0.56fr)", StringComparison.Ordinal), "Left rail must not use fixed-height panel tracks."); Assert(script.Contains("shouldUseCharacterPortrait", StringComparison.Ordinal), "Characters should use evidence cards until portrait evidence is strong enough."); diff --git a/PlotLine/wwwroot/css/story-intelligence-experience-prototype.css b/PlotLine/wwwroot/css/story-intelligence-experience-prototype.css index f29b045..b11f061 100644 --- a/PlotLine/wwwroot/css/story-intelligence-experience-prototype.css +++ b/PlotLine/wwwroot/css/story-intelligence-experience-prototype.css @@ -777,7 +777,7 @@ input:focus-visible { } .story-exp-zone--location .story-exp-zone-label { - left: 55%; + left: 67%; top: 22px; } diff --git a/PlotLine/wwwroot/js/story-intelligence-experience-prototype.js b/PlotLine/wwwroot/js/story-intelligence-experience-prototype.js index 226ab4e..243d44a 100644 --- a/PlotLine/wwwroot/js/story-intelligence-experience-prototype.js +++ b/PlotLine/wwwroot/js/story-intelligence-experience-prototype.js @@ -907,7 +907,7 @@ const height = Math.max(500, bounds?.height || 560); const size = Math.min(220, Math.max(176, width * 0.18)); return { - x: Math.round(width * 0.62 - size / 2), + x: Math.round(width * 0.70 - size / 2), y: Math.round(height * 0.46 - size / 2), size };