Repository navigation
Full screen hides the iPad's status bar too (discussion #400) - #408
Merged
Merged
Conversation
Capacitor's StatusBar plugin, which Obsidian's iOS app carries, is hidden while the active tab group shows a notebook full screen, and shown again anywhere else and on unload. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…creen group Review of #408: the native bar stays hidden through a reload (proved on the iPad), so the first show is sent and pagehide gives it back; following the active leaf would move a split's layout under the pen's first stroke; read the plugin from Capacitor.Plugins instead of registering it again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Not verified on device with this branch's own build. The iPad ran the vault build. The device checks below ran this branch's decision logic and the same Capacitor calls inside the live app.
What changed
Full screen (in a notebook's More panel, on tablets) now hides the iPad's status bar too: clock, battery and Wi-Fi. The bar is hidden while any tab group shows a notebook full screen. It comes back when no group does (a note or Home in front), when Full screen is turned off, when FineNotes unloads, and on
pagehide. This answers the status bar question in discussion #400.app.js:hideNavigation()callshide()only whenisPhone) and never shows it on a tablet.src/view/system-status-bar.ts:statusBarHidden(groups)is the pure decision.SystemStatusBarcalls the plugin only when the wanted state changes. It always sends the first state, because the native bar stays hidden through a page reload and Obsidian opens another vault by reloading without unloading plugins.findStatusBarreads the plugin fromCapacitor.Plugins; registering it a second time only logs a warning.Platform.isIosApp && Platform.isTablet).main.tsgets wiring only: one line insyncFullScreen, the field,pagehide, and the release on unload. One CSS comment is corrected.pointerdown, so following focus in a split would move the layout 32 px under the pen's first stroke (reviewer finding).Proof
tests/view/system-status-bar.test.tshas 9 tests, and all 11 gates are green.hide.getInfo()went fromvisible: true, height: 32tovisible: false, height: 0, and--safe-area-inset-topbecame0px. The screenshot shows the toolbar at the very top with no clock.hide(), thenlocation.reload(), thengetInfo()gavevisible: false. This is why the first state is always sent.Capacitor.Plugins.StatusBaris the registered plugin.show()restoredvisible: true, height: 32.Test on the device
Not verified
🤖 Generated with Claude Code