]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
ui: Use background-size to scale fanart to fit dvr dialog box.
authorE.Smith <31170571+azlm8t@users.noreply.github.com>
Tue, 2 Oct 2018 22:28:32 +0000 (23:28 +0100)
committerperexg <perex@perex.cz>
Wed, 3 Oct 2018 06:45:50 +0000 (08:45 +0200)
commitad58c5c83041169aacf38772fb75ce6d1f085f09
tree974d92abd20a873778e155cd2232512d8e8ebf4c
parente6a07318bf7c7dfd3609bc89dc733eb832fe24d0
ui: Use background-size to scale fanart to fit dvr dialog box.

Previously the fanart could be too big for the dialog. Now we
scale to fit the dialog.

We use 'cover' which can make the image slightly exceed the
dialog dimensions, compared to 'contain' which would leave
space at the top/bottom if the fanart is an odd dimension.
The 'cover' seems better with the fanart I've seen so far.
src/webui/static/app/dvr.js