Browse Source

Fix row height/width in webui for country flags.

Patch by Chocobo1.
adaptive-webui-19844
sledgehammer999 7 years ago
parent
commit
c887a162ba
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2
  1. 5
      src/webui/www/public/css/dynamicTable.css
  2. 2
      src/webui/www/public/scripts/dynamicTable.js

5
src/webui/www/public/css/dynamicTable.css

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

2
src/webui/www/public/scripts/dynamicTable.js

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

Loading…
Cancel
Save