Page 1 of 1

Icon sizes (background-size)

Posted: Mon Aug 29, 2011 2:20 pm
by Killjoy
It's pretty cool with the standard theme using the favicons of the tracker. But I had the problem the one tracker was serving a 32px favicon, which means it extends the height of the table cell.
To solve this problem I applied one of the new CSS3 features:

Code: Select all

.x-grid3-cell-inner div {
        -moz-background-size: 16px 16px !important;
        -o-background-size: 16px 16px !important;
        -webkit-background-size: 16px 16px !important;
        background-size: 16px 16px !important;
}
Pretty nasty hack, but the only way I found out how this can be fixed. If those rules would be made in the correct CSS file you could leave the !important hack.

Maybe a good idea for future versions of the skins. :)

Re: Icon sizes (background-size)

Posted: Fri Jan 06, 2012 2:10 pm
by Cas
Could you create a ticket for this please also you have not specified but I assume you mean the WebUI due to CSS fix.

Re: Icon sizes (background-size)

Posted: Fri Jan 06, 2012 3:24 pm
by johnnyg
I think damoxc considered using CSS3 but decided not to as it would hinder compatibility.
The current solution is to install the python imaging library so that the tracker icon will get resized to 16x16 after it is downloaded.
The resizing only happens when an icon is downloaded so you may want to delete any existing tracker icons which are bigger than 16x16.