Justify horizontally doesn't work properly in Canvas

Hello,

there’s a bug in the Justify horizontally command in canvas

Steps to reproduce

  1. Create a new Canvas note.
  2. Create 2 cards.
  3. Group cards together.
  4. Increase horizontal width of group block.
  5. Click Justify horizontally
  6. Resize group block to be smaller than cards width.
  7. Click Justify horizontally. It does nothing

Did you follow the troubleshooting guide? [Y]

Expected result

The card to be resized to match the smaller group width.

Actual result

It does nothing.

Environment

SYSTEM INFO:
Obsidian version: v1.4.16
Installer version: v1.4.13
Operating system: Windows 10 Enterprise 10.0.19045
Login status: logged in
Catalyst license: none
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none

This is by design, though maybe not 100% intuitive. A card only belongs to a group if it fits entirely within the group. So if you resize a group to be smaller than the cards within it, the cards will no longer “belong” to the group. So when you press “justify” again, there aren’t any cards in the group to resize.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.