Fix: show list page mobile view - #1023
Conversation
📝 WalkthroughWalkthroughThe Summit directory page layout, header, table configuration, and render error behavior were updated. Mobile styles now adjust spacing and keep the header fixed while offsetting page content. ChangesSummit directory UI
Responsive layout
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
src/styles/landing.cssParsing error: Missing semicolon. (1:4) Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/styles/landing.css (1)
98-109: 🎯 Functional Correctness | 🔵 TrivialGlobal fixed-header rule risks broader impact than the directory page, and the offset is a fragile hardcoded value.
.headerandbodyare both unscoped, global selectors, so this fixed-position + compensating padding applies to every page at ≤768px, not just the summit directory page — verify no other mobile page already manages its own header offset or lacks.headerentirely (which would leave an unwanted 64px gap at the top). Also,padding-top: 64pxmust exactly match the real rendered height of.header; any drift (font scaling, wrapped text, etc.) causes either a gap or content hidden under the fixed bar.Separately,
z-index: 1000sits below MUI's ownappBar(1100),drawer(1200), andmodal(1300) levels — if any MUIAppBar/Drawer/Modalrenders alongside.headeron mobile, this header could land underneath them.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/styles/landing.css` around lines 98 - 109, Scope the fixed-header styles in .header and the compensating top offset to the summit directory page instead of applying global body rules, and confirm other mobile pages are unaffected. Replace the hardcoded body padding with an offset derived from the header’s rendered height so content remains aligned when the header size changes. Update .header stacking to remain above the intended page content while preserving the established MUI AppBar, Drawer, and Modal layering hierarchy.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/styles/general.less`:
- Around line 223-230: Update the mobile rule inside the max-width 768px media
query to target .breadcrumbs-wrapper:not(.container) with matching specificity,
ensuring its mobile padding overrides the desktop declaration while preserving
the existing generic .breadcrumbs-wrapper behavior.
---
Nitpick comments:
In `@src/styles/landing.css`:
- Around line 98-109: Scope the fixed-header styles in .header and the
compensating top offset to the summit directory page instead of applying global
body rules, and confirm other mobile pages are unaffected. Replace the hardcoded
body padding with an offset derived from the header’s rendered height so content
remains aligned when the header size changes. Update .header stacking to remain
above the intended page content while preserving the established MUI AppBar,
Drawer, and Modal layering hierarchy.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 5060d56d-e289-4de8-b54e-88d233bec0a1
📒 Files selected for processing (4)
src/pages/summits/summit-directory-page.jssrc/styles/general.lesssrc/styles/landing.csssrc/styles/summit-directory-page.less
💤 Files with no reviewable changes (1)
- src/styles/summit-directory-page.less
|
|
||
| /* MOBILE SPECIFIC */ | ||
|
|
||
| @media only screen and (max-width: 768px) { | ||
| .breadcrumbs-wrapper { | ||
| padding: 10px 16px; | ||
| } | ||
| } |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Mobile breadcrumb override won't apply to the .breadcrumbs-wrapper:not(.container) variant.
.breadcrumbs-wrapper:not(.container) (Lines 78-81) has specificity (0,2,0) — the :not() argument counts toward specificity — while the new mobile rule .breadcrumbs-wrapper { padding: 10px 16px; } is only (0,1,0). Since specificity beats media-query/source-order when unequal, the desktop padding: 10px 12px; margin: 0 16px 20px 16px; will keep winning on mobile for any breadcrumb wrapper without the .container class — the intended mobile padding never applies to that variant.
🐛 Proposed fix: mirror the selector in the media query
`@media` only screen and (max-width: 768px) {
.breadcrumbs-wrapper {
padding: 10px 16px;
}
+
+ .breadcrumbs-wrapper:not(.container) {
+ padding: 10px 16px;
+ }
}📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| /* MOBILE SPECIFIC */ | |
| @media only screen and (max-width: 768px) { | |
| .breadcrumbs-wrapper { | |
| padding: 10px 16px; | |
| } | |
| } | |
| /* MOBILE SPECIFIC */ | |
| `@media` only screen and (max-width: 768px) { | |
| .breadcrumbs-wrapper { | |
| padding: 10px 16px; | |
| } | |
| .breadcrumbs-wrapper:not(.container) { | |
| padding: 10px 16px; | |
| } | |
| } |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@src/styles/general.less` around lines 223 - 230, Update the mobile rule
inside the max-width 768px media query to target
.breadcrumbs-wrapper:not(.container) with matching specificity, ensuring its
mobile padding overrides the desktop declaration while preserving the existing
generic .breadcrumbs-wrapper behavior.
https://app.clickup.com/t/9014802374/86bb44v82
Summary by CodeRabbit
New Features
Style
Bug Fixes