obsidian-advanced-canvas icon indicating copy to clipboard operation
obsidian-advanced-canvas copied to clipboard

[FR] Auto-resize node depending on its content

Open KuiyueRO opened this issue 1 year ago • 3 comments

I want to be able to auto resize when typing

KuiyueRO avatar Apr 04 '24 02:04 KuiyueRO

I have thought about this feature before. However, it is difficult to make it useful. It would have to have a maximum width so that text nodes do not become too wide. Also, you would have to somehow toggle this feature quickly so that you don't resize unwanted nodes. If you have any suggestions for solving these problems, please let me know.

Developer-Mike avatar Apr 04 '24 15:04 Developer-Mike

For toggle option

canvas mindmap helper puts this option in the upper right corner.

image

And I suggest that it only takes effect on the node currently in edit mode.

For width

Suggestion 1

Default node width as a threshold.

If node width is less than Default node width:

  • Auto resize width until width = Default node width

If the node width is greater than or equal to Default node width:

  • Do not change width

Suggestion 2

Just keep the existing width,.

advanced canvas already has a Default node width. If the user changes the width, then this width is what they want.

KuiyueRO avatar Apr 04 '24 16:04 KuiyueRO

Auto resize would be great addition! Typically on other canvas software (Logseq, Heptabase, Scapple etc.) the width isn't adjusted when resizing -this solution would work well for my personal workflow, at least. A toggleable setting also sounds ideal.

ramebe2585 avatar Apr 09 '24 13:04 ramebe2585

yes , I need it

The width can be adjusted manually, because everyone has their own preferences, and the height can be automatically adjusted according to the content.

hope it can be implemented as soon as possible. This is a very practical function . This can greatly increase the frequency of using canvas as a mindmap.

MugenLee avatar Nov 05 '24 16:11 MugenLee

This got added in version 3.2.0

Developer-Mike avatar Nov 08 '24 16:11 Developer-Mike