Closed natumbri closed 2 years ago
Thanks @jodal - I've tried to update per your suggestions, including CSS grid instead of javascript for handling resizing of images. The only one that didn't work was switching the border CSS to plain HTML: this still left an underline border.
Cheers, Nik
Do you know if template escaping is on by default? The docs aren't particularly clear about this:
https://www.tornadoweb.org/en/stable/template.html
If it isn't, we should work out how to turn it on, or add the necessary escaping.
@djmattyg007 All template output is escaped by default, using the tornado.escape.xhtml_escape
function, I'm told...
https://www.tornadoweb.org/en/stable/guide/templates.html#template-syntax
As you may have guessed, I too am no webdev (or, strictly, any kind of dev!). But I think I've worked it out: CSS property aspect-ratio
.
(Also fixed up the stray, incorrect id
, which was referenced in the javascript.)
Have you considered using the
mopidy.css
stylesheet to style themopidy-local
web client?When I added a image caching webclient to the
mopidy-youtube
front end, I formatted it using themopidy.css
stylesheet, so that it would be stylistically similar to the default mopidy web interface. I also included some javascript to make sure the images scale for screens (or browser windows) that are smaller than 600px wide.I've made a similar suggestion for
mopidy-bandcamp
Perhaps you'd be interested in doing the same thing with
mopidy-local
. If you are interested, theimg
style for the image thumbnails could also be moved intomopidy.css
so the default thumbnail can be the same for all web frontends?Cheers, Nik