Skip to content

fix(index-dtf): prevent proposal calldata from stretching the detail layout - #1085

Merged
JuampiRombola merged 1 commit into
masterfrom
devin/1786370775-fix-proposal-spacing
Aug 10, 2026
Merged

fix(index-dtf): prevent proposal calldata from stretching the detail layout#1085
JuampiRombola merged 1 commit into
masterfrom
devin/1786370775-fix-proposal-spacing

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

On proposal detail pages whose calldata contains long unbroken hex strings (e.g. the CMC20 DTF V4 Upgrade proposal), the whole page grew wider than the viewport: the votes/status column was pushed off-screen and the page got a horizontal scrollbar.

Cause: grid items default to min-width: auto, so the 10fr content column resolved to its min-content width — the width of the longest hex string in the JsonView parameters block. On a 1600px viewport the [10fr_5fr] track resolved to 1381.5px + 292px instead of 920px + 460px.

Fix:

  • grid-cols-[10fr_5fr]grid-cols-[minmax(0,10fr)_minmax(0,5fr)] on the proposal header and body grids, plus min-w-0 on both body columns, so tracks stay at their fr ratio regardless of content.
  • break-all on the JsonView container in raw-call-preview so long hex parameter values wrap inside the card (matching the already-wrapping Executable code block) instead of overflowing it.

Verified against the live proposal via a local dev server: documentElement.scrollWidth === clientWidth at 1600px and 410px, Summary/Raw tabs and expanded executable code all contained. Governance smoke + states e2e specs pass.

Link to Devin session: https://app.devin.ai/sessions/7bd70f0f9dd04123a030c0f70ed73cc9

Co-Authored-By: Patrick <patrick.mckelvy@reserve.org>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying register-app with  Cloudflare Pages  Cloudflare Pages

Latest commit: ced02aa
Status: ✅  Deploy successful!
Preview URL: https://bfc76a6a.register-app.pages.dev
Branch Preview URL: https://devin-1786370775-fix-proposa.register-app.pages.dev

View logs

@JuampiRombola JuampiRombola left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@JuampiRombola
JuampiRombola merged commit 1ee9d6b into master Aug 10, 2026
4 checks passed
@JuampiRombola
JuampiRombola deleted the devin/1786370775-fix-proposal-spacing branch August 10, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant