kitconcept / kitconcept.intranet

1 stars 1 forks source link

Show aspect ratio and width/height on hover for images #19

Open tisto opened 7 months ago

tisto commented 7 months ago

For DLR we build the feature to show the aspect ratio of an image and the width and height on hover:

Screenshot_2024-04-04_at_12 45 46_PM

This would be a nice addition for kitconcept.intranet. However, this is something I'd like to have in all our kitconcept projects. Options:

a) implement in core (some things might be too opinionated, like a fixed set of aspect ratios) b) implement in VLT? kitconcept-volto frontend package?

cc. @sneridagh @ericof @davisagli @robgietema

davisagli commented 7 months ago

a) implement in core (some things might be too opinionated, like a fixed set of aspect ratios)

I wouldn't be too worried about this. It's an informational feature for editors, and it's easy enough to make it configurable with a setting instead of fixed.

tisto commented 7 months ago

@davisagli is this a feature that you could imagine to work on with us for the Plone Distribution idea in general? @steffenri and I would like to work on the kitconcept.intranet distribution this week. You could work on the edu distribution and we could use the same enhancements together and try them out. What do you think?

Other topics could be the "kicker" behavior (#17) and the preview_image_link (#16) behavior.

cc @sneridagh @danalvrz @ericof

davisagli commented 7 months ago

@tisto This one sounds like it should be a core Volto feature to me. It's useful to any editor, not just for a specific distribution.

As it turns out, for the sprint I am focusing first on some fixes for the Plone cookiecutter. I might be able to work on some of those tickets for the edu distribution later in the week, but I can do them on my own at any time, so I'll prioritize topics that require discussions with the people at the sprint.

tisto commented 7 months ago

@davisagli I couldn't agree more. This is why I am bringing this up. kicker, preview_image_link and image enhancements should go into core. Our problem right now is just that this kind of blocks my efforts to work on example content. If I don't have the basics right, it does not make sense to work on example content. Especially when I upload images and they stay in the repo forever.