Repository navigation
fix(chat): align delegation connectors with actual card centers - #2352
Conversation
Fixed endpoint offsets drift when worker cards grow for wrapped content or live controls. Build the stem from per-card segments so branches remain centered and both wide and narrow layouts share continuous endpoints. Add an isolated browser fixture covering mixed heights and singleton layouts against the production stylesheet. Fixes vastsa#2350
|
@Linuxdazhao is attempting to deploy a commit to the vastsa's projects Team on Vercel. A member of the Team first needs to authorize it. |
vastsa
left a comment
There was a problem hiding this comment.
Independently verified the reported defect and the minimal CSS fix on refreshed head 00dcc7c2d16c61542c748f9d2325a37d9332ea35, incorporating main d5d658fa3547349ca87e21c6391e601fef18fa0b.
Using the provisioned Electron 43.6.0 Chromium renderer, an isolated profile, the production stylesheet, and the submitted geometry fixture, current main reproduces 18 geometry failures. The candidate passes all 36 geometry checks. An additional independent sweep over 60 combinations (320/419/520px narrow widths, 521/760/1100px wide widths, varying fractional card heights) passes 2160 checks. This covers branch centers, contiguous stem segments, outer endpoints, singleton layouts, and narrow incoming-axis alignment. Related topology/panel/transcript tests pass 43/43; style-token and whitespace checks pass.
The production change is confined to connector geometry and the necessary card margin normalization. There are no TS, persistence, dependency or interaction changes. The fetched PR merge tree is identical to the tested candidate tree c8be2e631a22b1b62aa850cbdc63e45ef390819b. Full installed-client workflows, physical Windows/Linux UI and live providers were not exercised locally; this is isolated real-renderer layout validation. Remote clean-build/typecheck and integration checks are assessed separately before landing. Vercel preview authorization is an external team permission status, not reported as a passing check.
Delegation branches used a fixed 35px offset and the vertical stem used fixed 36px end insets. Taller worker cards therefore detached the connectors from their centers and left a dangling stem tail; the narrow incoming line was also 14px off-axis.
Center each branch on its actual card and compose the stem from contiguous per-card segments, trimming only its outer endpoints. Singleton and narrow layouts use the same geometry. The change preserves card styling and interaction.
Validation: an isolated browser fixture loading the production stylesheet reports 18 geometry failures before the fix and 36 passing checks after it, covering 70/88/112px mixed heights, single workers, and 760px/420px widths. The 22 targeted transcript/panel tests and the style-token check pass. Desktop typecheck was attempted but is blocked by missing/stale generated workspace declarations, also present in the primary checkout; this CSS-only change does not alter TypeScript. Native application and live-provider verification were not run.
Fixes #2350.