Fix SlimEmail page structure and styling to match other admin pages#177
Fix SlimEmail page structure and styling to match other admin pages#177parhumm merged 4 commits intodevelopmentfrom
Conversation
The header template (slimstat-header + notification-sidebar) was rendered outside .backdrop-container and .wrap-slimstat, unlike all other admin pages. Move it inside to match the consistent structure used by index.php, layout.php, and upgrade-pro.php.
Add slimstat_page_slimemail to body background selectors so the page gets the same #f5f6fa background as other SlimStat admin pages. Add white background with rounded corners to .slimstat-email-report-content to match settings page form styling.
Replace flat .slimstat-email-report-content styling with scoped .slimstat-email-report rules that fix double margin-top (container + form-table), remove redundant border-radius on inner form-table, adjust container padding to avoid double-padding with form cells, tighten h2 margin, and add brand-styled submit button matching settings page.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdded admin CSS for an Email Report page and moved header rendering in the email-report template so the header loads after modal/content containers for both free and premium flows. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@admin/assets/scss/admin.scss`:
- Around line 3285-3288: The visible rounding persists because
.slimstat-options-section-header still has top border-radius; update the
stylesheet to explicitly remove that radius (e.g., set border-top-left-radius
and border-top-right-radius to 0 or set border-radius: 0) for the
.slimstat-options-section-header selector (or a more specific selector if
needed) so it overrides the rules at Lines ~3147–3150; ensure specificity (or
use !important only if necessary) so the header no longer renders the inner top
curve while keeping .form-table modifications.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 3fe8af10-af26-47ae-96b0-40b1d953fad9
📒 Files selected for processing (3)
admin/assets/css/admin.cssadmin/assets/scss/admin.scssadmin/view/email-report.php
…rt page The .slimstat-options-section-header inside .slimstat-email-report-content still inherited border-radius: 10px 10px 0 0 from the general .form-table tr:first-of-type rule. Add an explicit reset to border-radius: 0 within the email report content scope.
Summary
.wrap-slimstaton the email report page, matching the pattern used by all other SlimStat admin pages (index.php, layout.php, upgrade-pro.php, config)slimstat_page_slimemailto body background selectors so the page gets the same#f5f6fabackground.slimstat-email-reportSCSS rules to fix double margin/padding between the white content container and inner form-table, match submit button styling to settings page, and tighten heading spacingTest plan
.slimstat-headerand.slimstat-notification-sidebarshould be inside.wrap-slimstat#f5f6fa🤖 Generated with Claude Code
Summary by CodeRabbit
Style
Bug Fixes