Min Width

by doitian
5
4
3
2
1
Score: 53/100

Description

Category: Customization & UI

The Min Width plugin is a useful addition to your Obsidian workflow, ensuring that the active pane always has a minimum width. This can be particularly helpful when working with wide content or multiple panes open simultaneously. The plugin automatically resizes the active pane to ensure it meets this minimum threshold, while adjusting other panes accordingly. With customizable settings and support for different view types, you can tailor the plugin's behavior to your specific needs.

Reviews

No reviews yet.

Stats

14
stars
5,148
downloads
0
forks
1,307
days
794
days
1,305
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
5
total issues
0
open issues
5
closed issues
2
commits

Latest Version

4 years ago

Changelog

Upgrade for Obsidian 0.16.* Insider versions.

README file from

Github

Obsidian Min Width Plugin

What This Plugin Does?

The Min Width plugin sets the minimum width for the active pane. Obsidian will auto resize the active pane to ensure it is wider enough and shrink other panes accordingly.

This plugin is based on the blog post Set the Minimum Width of the Active Pane in Obsidian.

How to Use

Install the plugin by searching "Min Width" in the community plugins. Or manually copy over main.js, manifest.json in the release to the folder .obsidian/plugins/obsidian-min-width/ in your vault.

The default settings set the minimum width to either 40 columns or 88% of the whole editing area, depending on which is smaller. The settings tab also supports overriding the minimum width for different view types. Following is a list of some known view types:

  • markdown: The markdown editor
  • excalidraw: The view type used by plugin Excalidraw and Excalibrain.

CSS Snippet

This plugin will add the class min-width-plugin-active to the active column. If you find out that the plugin does not work as expected, the possible cause is some more specific CSS rules have overridden the rules set in this plugin. You can add more specific CSS rules in the Appearance / CSS snippets settings section. The following example is from the issue #4:

.workspace
  .mod-root
  .workspace-tabs.mod-stacked.min-width-plugin-active
  .workspace-tab-container
  .workspace-leaf.mod-active {
    width: min(88%, 40rem);
}