Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Duo Optimize

GINJILISMGINJILISM36 downloads

Fixes 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.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

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).

Features

  • Tap protection (touch slop): On mobile, the sidebar drawer follows your finger even for short taps and small movements, which makes the screen twitch and gets in the way of plugin UI on the left side. This plugin holds back move events until the horizontal travel passes a threshold (default 36 px), so deliberate swipes still open the sidebars while taps stay calm. There is no stock setting to disable the sidebar swipe; this is the middle ground.
  • Layout guard: Obsidian picks the phone or tablet layout from the shortest screen dimension, and on foldables the choice can land wrong after opening or closing the device, leaving a mixed layout. The guard checks the body classes against the screen size after a resize and repairs them when they disagree (rate-limited so it never fights the app). A manual command, "Check and repair layout", is also available. An experimental option can lock the expectation to the phone layout.
  • Hideable tab bar + floating buttons: The top tab bar can be hidden in the unfolded (tablet) layout for a cleaner reading view. A small button in the top-right toggles it: just below the tab bar while it is shown, and in the corner (inward of the sidebar button) while it is hidden, so it never overlaps the built-in buttons. Because hiding the tab bar also hides the built-in sidebar buttons, replacement sidebar buttons appear in the top-left and top-right corners while it is hidden. All floating buttons fade out while scrolling down and reappear on scroll up or back at the very top.
  • Tab title bar auto-off: Optionally turns off the core "Show tab title bar" appearance setting at startup. If you turn it back on in the core settings, it stays on for that session; turning the plugin option off does not restore it.
  • Per-device settings: All settings are stored in per-device local storage and are never synced, so each device keeps its own values and your PC is never affected.

Installation

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.

Known limits

  • The layout guard works at the CSS class level. The workspace scaffolding that Obsidian builds at startup cannot be rebuilt by a plugin, so a mixed layout can occasionally need an app restart anyway.
  • The replacement sidebar buttons use the workspace API with a fallback to the core toggle commands.
  • Tap protection is designed for one-finger touch gestures. Multi-touch and pen input are left untouched.

Development

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

License

MIT

HealthExcellent
ReviewPassed
About
Fix layout and touch issues on foldable phones by delaying sidebar swipe until decisive horizontal drags and by repairing incorrect phone/tablet layout after resizes. Hide the top tab bar and add floating replacement sidebar buttons that fade on scroll, optionally disable the tab title bar at startup, and keep settings per device.
SidebarNavigationInterface
Details
Current version
0.6.1
Last updated
4 days ago
Created
4 days ago
Updates
2 releases
Downloads
36
Compatible with
Obsidian 1.5.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
GINJILISMGINJILISMginjilism
GitHubginjilism
  1. Community
  2. Plugins
  3. Sidebar
  4. Duo Optimize

Related plugins

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Note Toolbar

Add customizable toolbars to your notes.

Vertical Tabs

Offer an alternative view that displays open tabs vertically, allowing users to group and organize tabs for a better navigation experience.

Recent Files

Display a list of recently opened files.

TagFolder

Show tags as folder.

Hover Editor

Transform the Page Preview hover popover into a fully working editor instance.

Portals

A file browser that lets users add folders & tags as customizable tabs with icons, colors, and folder notes for easier navigation.

Reveal Active File Button

Add a button to the top of the File Explorer, to reveal the active file.

Hide Sidebars on Window Resize

Automatically hides the sidebars when your window is narrow on window resize.

Dragger

Drag and drop any block (paragraphs, headings, lists, etc.) to rearrange content like Notion.