Peng He139 downloadsZoom canvases on open to fill the viewport width, pinned to the top. Ideal for project boards with many cards.
Zoom Obsidian canvases on open so content fills the viewport width, pinned to the top. Lower rows can stay off-screen — useful for tall project boards with many cards.
zoomToFit while the plugin is activemain.js, manifest.json, and styles.css from the latest release.canvas-project-autofit inside your vault’s .obsidian/plugins/.Projects/ are auto-fitted).Use the command Fit canvas to width to re-apply the framing on the active canvas.
| Setting | Default | Description |
|---|---|---|
| Canvas path prefix | Projects/ |
Limit auto-fit to canvases under this folder. Empty = all canvases. |
| Width fraction | 1.0 |
How much of the board width to frame. Lower = more zoomed in. |
| Top padding | 16 |
Pixels of space above content when framing. |
| Clickable external links | on | Open URLs from text cards with a single click. |
This plugin is written in plain JavaScript (main.js) for easy inspection and community review. No build step is required.
To develop locally:
.obsidian/plugins/canvas-project-autofit/ inside a test vault, or symlink it.This repository is structured for Obsidian Community plugin submission:
manifest.json at repo root (committed on default branch)LICENSE (MIT)README.md with usage instructions1.2.0 (no v prefix) with release assets: main.js, manifest.json, styles.cssversions.json maps plugin version → minimum Obsidian versionAfter publishing a release, sign in at community.obsidian.md, link GitHub, and submit the repository URL under Plugins → New plugin.
MIT — see LICENSE.