Only hide infopanel on low-res landscape#697
Conversation
📝 WalkthroughWalkthroughThis PR refines narrow-layout detection for the shortcuts panel to require landscape orientation, remaps area 5 based on ChangesAccessibility and layout fixes
Estimated code review effort: 2 (Simple) | ~12 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
style.css (1)
1019-1021: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueMagic number
85pxin#blocklyDivheight calculation.The
#bottomBarheight is52px(line 939) and#info-panel-tabsmargin-bottom is35px(line 1016), totaling87px— but#blocklyDivsubtracts85px. If this offset is meant to account for both elements, it's off by 2px. If it accounts for something else, the relationship should be documented or derived from the same values to avoid drift.♻️ Suggested refactor: derive from shared values
- `#blocklyDiv` { - height: calc(100% - 85px - max(0px, env(safe-area-inset-bottom, 0px))) !important; - } + `#blocklyDiv` { + height: calc(100% - 52px - 35px - max(0px, env(safe-area-inset-bottom, 0px))) !important; + }🤖 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 `@style.css` around lines 1019 - 1021, The `#blocklyDiv` height calculation uses a hardcoded 85px offset that appears to drift from the related layout values. Update the `#blocklyDiv` rule to derive its subtraction from the same shared size values used by `#bottomBar` and `#info-panel-tabs`, or adjust it so the total matches those symbols consistently; keep the relationship centralized to avoid future mismatch.
🤖 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 `@style.css`:
- Around line 1032-1046: The landscape responsive rules need to hide the drag
handle at the 769–1024px breakpoint as well, since `.resizer` can remain visible
when `aside#info-panel` is hidden. Update the media query in the
`#info-panel`/`.resizer` responsive block so the `.resizer` selector is also
covered in the landscape ≤1024px case, and remove the redundant `#info-panel {
display: none; }` declaration because `aside#info-panel` already handles that
state.
---
Nitpick comments:
In `@style.css`:
- Around line 1019-1021: The `#blocklyDiv` height calculation uses a hardcoded
85px offset that appears to drift from the related layout values. Update the
`#blocklyDiv` rule to derive its subtraction from the same shared size values used
by `#bottomBar` and `#info-panel-tabs`, or adjust it so the total matches those
symbols consistently; keep the relationship centralized to avoid future
mismatch.
🪄 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: 203e9d11-07f5-428d-8227-e6949e56c3b5
📒 Files selected for processing (3)
accessibility/keyboardui.jsstyle.csstests/keyboardui.test.js
Summary
PR #693 hid the info panel (containing the shortcuts docs and the Flock link) at narrow resolutions as there wasn't enough room to display the info panel. This unintentionally placed the Flock logo over the top of the pill toggle on mobile.
This PR only hides the infopanel on low resolution (<1024px width) LANDSCAPE screens where there is no room for it. On narrow portrait screens (i.e. mobile phones in portrait) there is plenty of room so the infopanel bar is displayed.
AI usage
Claude Sonnet 4.6 and Fable 5 (ooo) used throughout, decisions made by a human.
Summary by CodeRabbit
Bug Fixes
Tests