javalent / fantasy-statblocks

Create Dungeons and Dragons style statblocks for Obsidian.md
MIT License
339 stars 68 forks source link

🐞 forceColumns and columnHeight not working properly #424

Open drmy022 opened 3 weeks ago

drmy022 commented 3 weeks ago

Check for existing bug reports before submitting.

Expected Behavior

Pick any wordy statblock (i.e. Ancient Black Dragon)

```statblock
monster: Ancient Black Dragon
columns: 4
forceColumns: 1
columnWidth: 300
columnHeight: 200
```

This should make the statblock appear in 4 separate columns of 300px wide and 200px high

Current behaviour

Currently, playing around with columnHeight has no bearing on the shape of the statblock at all. Furthermore, forceColumns does not actually force the statblock into the correct number of columns.

In the current exemple, it only renders 3 columns. If you change columns to 5, it will add a forth column.

image

image

image

image

Reproduction

Pick any new vault

Install Fantasy Statblock Plugin

Generate any statblock using a the statblock codeblock (lengthier ones are more obvious to work with like Ancient Black Dragon)

Add the fields columns, forceColumns, columnWidth and columnHeight in the statblock codeblock

Set columns > 3

Set forceColumns to true

Set column Height to any integer

Go in reading view - The note will not be the number of columns asked nor will the height move.

Which Operating Systems are you using?

Obsidian Version Check

1.6.3

Plugin Version

4.4.2

Confirmation

Possible solution

No response