fix(activity-feed-v2): anchor feed to sidebar to prevent page scroll#4652
Conversation
The v2 wrapper relied on height: 100% propagating from ancestors. On shared-link pages the chain stops at a min-height ancestor, so the feed grew to its content height and the whole page scrolled instead of the feed. Switch the wrapper to position: absolute; inset: 0 and make the outer .bcs-NewActivityFeedContent the containing block, so the feed fills the sidebar regardless of ancestor height behavior.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe activity feed stylesheet now positions the feed absolutely to fill its parent, adds a relative content wrapper, and keeps the existing anchor and SVG reset rules while removing explanatory comments. ChangesActivity Feed V2 Styling
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
|
Queued — the merge queue status continues in this comment ↓. |
Merge Queue Status
This pull request spent 13 seconds in the queue, including 3 seconds running CI. Required conditions to merge
|
Summary
.bcs-NewActivityFeedto its sidebar container withposition: absolute; inset: 0and give.bcs-NewActivityFeedContentposition: relativeso it acts as the containing block.isThreadedRepliesV2Enabledis on.Why
The previous v2 wrapper used
height: 100%, which depends on every ancestor propagating a definite height. The regular preview path runs inside.preview-overlay(position: fixed; inset: 0) which satisfies that. The shared-link path runs inside.shared-file-page->main->bodywhose chain bottoms out at amin-height: 100vhancestor, soheight: 100%collapsed to content height and the feed pushed the page taller than the viewport.Absolutely positioning the wrapper against
.bcs-NewActivityFeedContentmirrors the approach v1 already takes via.bcs-scroll-content-wrapperinSidebarContent.tsx.Test plan
activityFeed.threadedRepliesV2.enabledoff) is unchanged.Summary by CodeRabbit