Rebalance story stage after removing assets
This commit is contained in:
parent
588a223b44
commit
17144c64d3
@ -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(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(!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("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: 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(!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.");
|
Assert(script.Contains("shouldUseCharacterPortrait", StringComparison.Ordinal), "Characters should use evidence cards until portrait evidence is strong enough.");
|
||||||
|
|||||||
@ -777,7 +777,7 @@ input:focus-visible {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.story-exp-zone--location .story-exp-zone-label {
|
.story-exp-zone--location .story-exp-zone-label {
|
||||||
left: 55%;
|
left: 67%;
|
||||||
top: 22px;
|
top: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -907,7 +907,7 @@
|
|||||||
const height = Math.max(500, bounds?.height || 560);
|
const height = Math.max(500, bounds?.height || 560);
|
||||||
const size = Math.min(220, Math.max(176, width * 0.18));
|
const size = Math.min(220, Math.max(176, width * 0.18));
|
||||||
return {
|
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),
|
y: Math.round(height * 0.46 - size / 2),
|
||||||
size
|
size
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user