Icon sizes (background-size)

Suggestions and discussion of future versions
Post Reply
Killjoy
New User
New User
Posts: 2
Joined: Mon Aug 29, 2011 10:09 am

Icon sizes (background-size)

Post 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. :)
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Icon sizes (background-size)

Post 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.
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Icon sizes (background-size)

Post 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.
Post Reply