JackGruber / joplin-plugin-notelistpreview

A plugin to add a previw to the note list
MIT License
18 stars 4 forks source link

Item height based on content (auto) #31

Closed ivangretsky closed 1 month ago

ivangretsky commented 1 month ago

Good day and thanks for the super plugin!

Is it now possible and if not is it possible to add a preview item height based on the content height? Like a default html behavior? No need to guess and set pixels... I've tried set Item height to 0, but they just disappeared.

JackGruber commented 1 month ago

No this is not possible, the item height is always fixed, as this is required for loading and rendering the item in joplin.

ivangretsky commented 1 month ago

Thanks for your response! Could you please lead me to the info about the need for a fixed item height? I've tried to play around with the dev tools, and it seemed ok. I couldn't test all cases for sure...

JackGruber commented 1 month ago
ivangretsky commented 1 month ago

Thanks! Have you tried ignoring the itemsize? Just for the case when one is ok with performance penalties? Or is it mandatory to set and type checked?