[WebUI] Fix tracker icon to fit within tracker column rows

For me at least, Safari on Mac OS X, the tracker icon significantly
overflows in the Tracker column of the torrent list. (It does show the
correct size in the Trackers filter, though. Different CSS.)

This change causes it to constrain down to the height of the column and
display correctly.

Closes: https://github.com/deluge-torrent/deluge/pull/440
This commit is contained in:
Chris Ross 2023-12-29 12:11:24 -05:00 committed by Calum Lind
parent 7f70d6c6ff
commit d9ef65d745
No known key found for this signature in database
GPG Key ID: 90597A687B836BA3
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@
return String.format( return String.format(
'<div style="background: url(' + '<div style="background: url(' +
deluge.config.base + deluge.config.base +
'tracker/{0}) no-repeat; padding-left: 20px;">{0}</div>', 'tracker/{0}) no-repeat; background-size: contain; padding-left: 20px;">{0}</div>',
Ext.util.Format.htmlEncode(value) Ext.util.Format.htmlEncode(value)
); );
} }