shreevatsa / chaya

0 stars 0 forks source link

Custom image size and text (font) size #6

Closed shreevatsa closed 6 months ago

shreevatsa commented 6 months ago

It should be possible to change the sizes.

(And also of course where the text is displayed: side-by-side, or below the image.)

shreevatsa commented 6 months ago

The "below the images" comes later, when we have line-by-line regions. For now, a min-width on the text area should be a first step maybe?

shreevatsa commented 6 months ago

I think I can use CSS variables instead of re-rendering nodes inside ProseMirror, following https://discuss.prosemirror.net/t/force-todom-to-be-re-executed/3627/7

https://chat.openai.com/c/5733041c-6605-4350-aeda-83bcb547b9d4

shreevatsa commented 6 months ago

Honestly, I could change the sliders to buttons (and will probably do that when setting up Prosemirror-menu), but sufficiently satisfied with this at the moment to even close it. Browser support is also good: https://caniuse.com/css-variables

Wasn't expecting such a tiny change to be enough!