zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
4.22k stars 231 forks source link

FR: An option to choose an alignment by default for embedded drawings #919

Open Elaws opened 1 year ago

Elaws commented 1 year ago

All embedded excalidraw drawings are aligned left by default. It would be nice to choose the default alignment for all embedded drawings.

E.g. : I would like all my drawings aligned center by default.

Thank you !

zsviczian commented 1 year ago

You like embedded images (not Excalidraw) centered by default? In that case you should add a CSS snippet in Appearance setting to center images in markdown view. I am sure a few questions on OMG will lead you to the technical solution. I imagine it shouldn't be that difficult. Maybe there are some Themes that come like this out of the box.

dvub commented 2 months ago

I think this would be a nice addition as well without the need for CSS. It's frustrating to create like 10 diagrams in a note and then have to center them myself.