fix: stop configurator clipping inside WP admin's layout chrome - #123
Conversation
Re-sync App.svelte from the framework fix (w-full/h-full when embedded instead of viewport units) and scope plugin-side CSS to the Tokens admin page that strips WP's wrap margin/padding around the app and gives its ancestor chain a real height, so the app fills the content area instead of overflowing past its right edge with a gap top-left. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SQXr34nocCi1jrGcp5TPVm
|
Warning Review limit reached
Next review available in: 53 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoFix configurator sizing when embedded in WP admin Tokens page
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
1 rule 1.
|
Re-sync App.svelte/persistence.ts (framework now uses hasWpBoot() instead of overloading isEmbedded()'s REST-specific meaning for layout sizing) and rebuild the admin SPA bundle. Also fix the Tokens-page layout CSS: forcing a fixed height + overflow:hidden on the whole #wpbody-content/.wrap/#slashed-admin-app chain meant any admin notice rendered above .wrap (core update notices, the Bricks integration's own admin_notices) would push the app past the bottom edge with no way to scroll to it. Switch to a flex column so notices keep their natural height and only .wrap claims the remaining space. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SQXr34nocCi1jrGcp5TPVm
Summary
w-screen h-screen), correct for the standalone hosted app but wrong once mounted inside WP admin's normal document flow (.wrap/#wpcontent) — the viewport-sized element overflowed past the content area's right edge while the host's own layout chrome left a gap top-left.App.sveltefrom the framework fix (fix(configurator): stop full-viewport sizing from clipping inside WP admin SLASHED#463), which switches tow-full h-fullwhen running embedded.class-token-page.php, scoped to the Tokens admin page only via a dedicated body class, that strips WP's wrap margin/padding around the app and gives its ancestor chain (#wpcontent,#wpbody,#wpbody-content,.wrap,#slashed-admin-app) an explicit height so the newh-fullroot has real dimensions to fill instead of collapsing to 0.assets/admin-app/app.js).Type
Checklist
feat:,fix:,docs:, …)npm test(not run — requires WP test harness not available in this environment;npm run lintandnpm run verifywere run instead)npm run lintpasses (stylelint +php -l)npm run verifypasses (version metadata in sync)assets/admin-app/app.jsregenerated vianpm run build:admin-app, not hand-edited)CHANGELOG.mdupdated under## [Unreleased]— not done, let me know if you'd like this addedadmin-app/srcsource changed via sync)Notes
Depends on codeslash-dev/SLASHED#463 (framework half of this fix) —
admin-app/src/App.sveltewas synced from that branch viaSLASHED_CONFIGURATOR_SRC=/path/to/SLASHED/configurator/src npm run sync. Once #463 merges tomain, a normal GitHub-sourced re-sync will pick it up the same way.🤖 Generated with Claude Code
https://claude.ai/code/session_01SQXr34nocCi1jrGcp5TPVm
Generated by Claude Code