mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-12-03 09:09:33 +01:00
fix(story-mode): a speech balloon never covers the art or Claude's face
A balloon that found no room beside a long caption dropped to just below it, inside the art band: on the fix loop it covered the code page and the "19 tests" label of the board, and elsewhere it sat on Claude's face (a balloon of three lines or fewer was exempt from the clamp). A sweep over the 11 corpus sessions, every turn, both modes, at 390, 820, 1100 and 1440 px and beside the diff drawer found 131 of 690 balloons covering a click region or Claude's face. Every balloon (Claude's, the loop's aimed one, the ask panel's, yours and a notice) is now placed by _storyFitBalloon from the scene's layout at its finished frame (StoryArt.layout, a dry run on a scratch canvas), so an entrance with objects still in flight never moves it or the panel's height. It must end above every click region under it (its tail above those under the tail) and above Claude's face; a click region holding his face is Claude himself and only the face rule applies to it. When two lines do not fit, the panel grows for caption and balloon together and the scene stands lower. The growth is computed at the panel's usual height (storyBalloonRoom, pure), so a refit of the grown panel asks for the same height: one extra pass, never an oscillation. The rest of a long text clamps as before. agent() now names Claude by his default colour, not by being cyan, so the cyan fourth helper no longer takes the balloon, and the check scene reports how high Claude's jump lifts his face. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
ed6c89ff98
commit
24abd5a8cb
3 files changed
+317
-53
No files matched your search
@@ -429,7 +429,7 @@ body.story-open .toast-container {
|
||||
top: auto;
|
||||
bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
|
||||
}
|
||||
/* story-mode.js sets --story-lines when a balloon would leave its panel or cover Claude's head. */
|
||||
/* story-mode.js sets --story-lines when a balloon would leave its panel or cover the art or Claude's face. */
|
||||
.story-balloon-text {
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
@@ -503,8 +503,8 @@ body.story-open .toast-container {
|
||||
.story-balloon--note::after {
|
||||
display: none;
|
||||
}
|
||||
/* Claude's balloon is placed over its head by story-mode.js (_storyPlaceBalloon); a scene with no
|
||||
Claude in it (the loop) keeps it in the top corner, clear of the art below. */
|
||||
/* Every balloon is placed by story-mode.js (_storyFitBalloon), from the scene's layout: these are its
|
||||
places before that (or without a scene layout). */
|
||||
.story-panel[data-kind='loop'] .story-balloon--claude {
|
||||
top: 10px;
|
||||
right: 12px;
|
||||
|
||||
Reference in new issue
Block a user