GINJILISM36 downloadsFixes for Obsidian Mobile on foldable phones like iPhone Duo: tap protection for the sidebar swipe, a layout guard for phone/tablet mode mix-ups, a hideable tab bar with floating buttons, and per-device settings.
Fixes for using Obsidian Mobile on a foldable phone (developed and tested on an iPhone Duo; the same issues exist on Android foldables such as Galaxy Fold and Pixel Fold).
Install from the Obsidian Community Plugins directory (Settings -> Community plugins -> Browse), or manually: copy main.js and manifest.json into <your vault>/.obsidian/plugins/duo-optimize/ and enable the plugin.
Plain JavaScript, no build step. The decision logic (gesture gate, layout checks, settings resolution, button visibility) is kept DOM-free and covered by small tests:
node tests/run.js
node tests/layout-tests.js
node tests/settings-tests.js
MIT