fix: balance EventLanding hero on wide screens - #751
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Anshumancanrock The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Deploy Preview for project-hami ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Warning Review limit reached
Next review available in: 19 minutes Limit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?Wait for the limit to reset, then comment An organization admin can change what happens after included review limits in Billing. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe event hero now separates description and links from event metadata. The metadata appears in an accessible details card. CSS adds a two-column layout, sticky details, updated spacing, and responsive single-column behavior. ChangesEvent hero layout
Estimated code review effort: 3 (Moderate) | ~15–30 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
Signed-off-by: anshumancanrock <anshu.1239.as@gmail.com>
|
Hi @fishman, could you please take a look at this PR when you have time? Thanks! |
mesutoezdil
left a comment
There was a problem hiding this comment.
clean pr: single signed commit, ci green, before and after screenshots. two small things inline.
|
|
||
| .detailsCard { | ||
| padding: var(--hami-space-24); | ||
| position: sticky; |
There was a problem hiding this comment.
sticky does nothing here. align-items start collapses heroAside to the card height, so the card has no room to stick. move sticky to heroAside or drop it.
There was a problem hiding this comment.
Good catch. Moved sticky to .heroAside so it actually has room to stick. thanks!
| </div> | ||
| )} | ||
| <aside className={styles.heroAside} aria-label={isZh ? "活动信息" : "Event details"}> | ||
| <div className={`hami-section-card ${styles.detailsCard}`}> |
There was a problem hiding this comment.
hami-section-card has a hover lift in custom.css. on a static info card that reads as clickable. fine if intended, worth a look.
There was a problem hiding this comment.
yeah, not intended. Dropped hami-section-card on the details card so it doesn’t look clickable.
Signed-off-by: anshumancanrock <anshu.1239.as@gmail.com>
efa8b23 to
f708f60
Compare
|
Closing this for now: #834 addresses the same EventLanding banner sizing issue. If I misread the intent of this change, please say so here and I will reopen it. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Event landing pages capped the description at 720px, so wide screens had a big empty gap on the right. Moved date/location/time into a side card next to the description so the layout fills naturally.
Which issue(s) this PR fixes:
Fixes #749
Before:
Description stuck at 720px max-width, empty space on the right on widescreen.
After:
Description + links on the left, event details card (date / location / time / room) on the right; stacks on smaller screens.
Checklist:
npm run lintandnpm run format:checkpassnpm run buildsucceeds for bothenandzhgit commit -s)Summary by CodeRabbit