1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 21:14:33 +00:00

Fix row height/width in webui for country flags.

Patch by Chocobo1.
This commit is contained in:
sledgehammer999 2017-10-21 17:38:36 +03:00
parent 52df71ad3a
commit c887a162ba
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2
2 changed files with 7 additions and 0 deletions

View File

@ -78,6 +78,11 @@ tr.dynamicTableHeader {
white-space: nowrap; white-space: nowrap;
} }
.dynamicTable td img.flags {
height: 1.25em;
vertical-align: middle;
}
.dynamicTableFixedHeaderDiv { .dynamicTableFixedHeaderDiv {
overflow: hidden; overflow: hidden;
} }

View File

@ -1182,12 +1182,14 @@ var TorrentPeersTable = new Class({
if (td.getChildren('img').length) { if (td.getChildren('img').length) {
var img = td.getChildren('img')[0]; var img = td.getChildren('img')[0];
img.set('src', img_path); img.set('src', img_path);
img.set('class', 'flags');
img.set('alt', country); img.set('alt', country);
img.set('title', country); img.set('title', country);
} }
else else
td.adopt(new Element('img', { td.adopt(new Element('img', {
'src' : img_path, 'src' : img_path,
'class' : 'flags',
'alt' : country, 'alt' : country,
'title' : country 'title' : country
})); }));