fix(predict): hidden outcome buttons on single outcome market details cp-7.79.0 #30536
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8e24e64. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
No shared components, controllers, navigation, or core infrastructure is affected. Changes are entirely within the Predict feature's market details view. SmokePredictions: Directly required - changes are in PredictMarketDetails and PredictMarketDetailsActions components which are core to the prediction market flow. SmokeWalletPlatform: Required per SmokePredictions tag description - "Predictions is also a section inside the Trending tab (SmokeWalletPlatform); changes to Predictions views affect Trending. When selecting SmokePredictions, also select SmokeWalletPlatform." SmokeConfirmations: Required per SmokePredictions tag description - "opening/closing positions are on-chain transactions. When selecting SmokePredictions, also select SmokeConfirmations." Performance Test Selection: |
|




Description
Fixes collapsed Predict market detail action buttons for single-outcome markets. The Yes/No footer actions were rendering as visible controls, but their parent action columns could measure too small, which made the footer border appear in the wrong place and left the buttons visually clipped.
This change reserves the expected action button height in the Predict market details action columns while preserving the existing
showPayoutEstimatelayout behavior. It also adjusts the fee exemption label positioning so it remains anchored with the footer layout.Changelog
CHANGELOG entry: Fixed a bug that caused Predict market action buttons to appear collapsed on single-outcome market details.
Related issues
Fixes: PRED-926 https://consensyssoftware.atlassian.net/browse/PRED-926?atlOrigin=eyJpIjoiOWEwZDE0N2ZhZTZlNGYwNzk5NGI3OTFkZGQyNDFkNjgiLCJwIjoiaiJ9
Manual testing steps
Screenshots/Recordings
Before
Yes/No footer action buttons appeared collapsed, with only a thin strip visible and the footer border positioned through the action area.
After
Yes/No footer action buttons are fully visible at the bottom of the market details screen.
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Low risk UI/layout change that adds minimum height constraints to footer action columns/buttons and adjusts a label’s positioning; behavior changes are limited to Predict market details rendering.
Overview
Fixes a Predict market details layout bug where the Yes/No footer actions could collapse/clipped in single-outcome markets by reserving a minimum height for both the action buttons and their containing columns.
Also tweaks the fee exemption banner styling by moving absolute positioning into
twClassNameso it stays anchored correctly with the footer, and adds a test asserting the action columns maintain the expected minimum height.Reviewed by Cursor Bugbot for commit 10a2c17. Bugbot is set up for automated code reviews on this repo. Configure here.