fix: always show PDF viewer toolbar with back button#3269
Conversation
Fix DocumentViewer layout so the toolbar with the Back button is always visible regardless of sidebar state. The wrapper now properly fills its parent with absolute positioning, and the viewer uses a column flex layout to stack the toolbar above the PDF content.
|
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 (2)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🔇 Additional comments (3)
WalkthroughLayout modifications applied to the DocumentViewer component and its wrapper styling. The outer container now uses flex column layout instead of absolute positioning with centered alignment. The DocumentViewerWrapper styled component received absolute positioning properties to fully overlay its parent container. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📝 Coding Plan
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 |
Summary
Fixes CORE-1241 — PDF viewer always shows the Back button toolbar.
When opening a PDF from a channel's Files tab, the PDF viewer toolbar (with the Back button) was not visible, leaving the user stuck with no way to navigate back.
Changes
DocumentViewerWrapperso it properly fills the parent containerDocumentViewerlayout from absolute-positioned to column flex, ensuring the toolbar stacks above the PDF contentflexGrow: 1with relative positioning so the webview fills the remaining spaceTest plan
Summary by CodeRabbit