Repository navigation
fix(question-dock): reach the answer highlight to the card's right edge - #2384
Open
opencode-agent[bot] wants to merge 1 commit into
Open
opencode-agent[bot] wants to merge 1 commit into
opencode-agent[bot] wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The composer question dock's answer highlight stopped 26 pt short of the card's right edge, while the left side reached 6 pt from it.
Why: the answers' scroll viewport had
w_full()(width 100%) plusml(-10) mr(-6). A fixed 100% width keeps the parent's width, so the negative margins only shifted the box left. In CSS,margin-inlineon an auto-width block widens it on both sides.Fix (
crates/session-view/src/dock/question/composer.rs):w_full()on the viewport so the column stretches it and both negative margins widen it.question-bodyend padding 16 → 12 pt, matching official (packages/session-ui/src/components/question-prompt.css:23, whichquestion-answer-composer.cssonly overrides at the start). The highlight now sits 6 pt from both edges, and the×centres over the number badges again.Before / after
I built both Linux x64 packages (before: #2380's build at
777c2bb, the parent ofdev; after: this PR's build) and captured them headless with--scene question-composer --fixture --size 900x600 --scriptat four keyframes: at rest, pointer over answer 2, answer 2 picked, pointer over answer 3. Gaps come from--treerects:I couldn't attach the annotated keyframe strips inline here: this agent can't upload GitHub attachments and has no public host for them. They're in the Slack thread that asked for this.
Requested by: @Hona (Hona via Slack)