Show seeder & leecher down to 520px wide at worst instead of 810px (#1257)
* change seeder & leecher width at lower res * change class for seeder & leecher * add new class to hide stuff when below 520px wide * add those classes in upload * change classes in torrent updating JS * change class in torrent updating JS for upload
Cette révision appartient à :
Parent
783c323afc
révision
116464f43b
5 fichiers modifiés avec 18 ajouts et 16 suppressions
|
@ -461,6 +461,7 @@ html, body {
|
|||
.box { padding: 7px; }
|
||||
.tr-cat { width: 71px; }
|
||||
.torrent-preview-table .tr-cat { width: 74px; }
|
||||
.tr-se, .tr-le { width: 36px; }
|
||||
.tr-links { width: 48px; }
|
||||
.header .h-search input { width: 90px !important; }
|
||||
.header .h-search input:focus { width: 150px !important; }
|
||||
|
@ -472,6 +473,7 @@ html, body {
|
|||
.form-input.language { width: 281px; }
|
||||
.form-input.refine { display: none; }
|
||||
.tr-links { width: 44px; }
|
||||
.hide-smol { display: none!important; }
|
||||
}
|
||||
|
||||
.up-input {
|
||||
|
|
|
@ -32,8 +32,8 @@ Templates.Add("torrents.item", function(torrent) {
|
|||
"</a>"+(torrent.torrent != "" ? " <a href=\""+torrent.torrent+"\" title=\"{{ T("torrent_file") }}\"><div class=\"icon-floppy\"></div></a>" : "") +
|
||||
"</td>"+
|
||||
"<td class=\"tr-size home-td hide-xs\">"+humanFileSize(torrent.filesize)+"</td>"+
|
||||
"<td class=\"tr-se home-td hide-xs\">"+torrent.seeders+"</td>"+
|
||||
"<td class=\"tr-le home-td hide-xs\">"+torrent.leechers+"</td>"+
|
||||
"<td class=\"tr-se home-td hide-smol\">"+torrent.seeders+"</td>"+
|
||||
"<td class=\"tr-le home-td hide-smol\">"+torrent.leechers+"</td>"+
|
||||
"<td class=\"tr-dl home-td hide-xs\">"+torrent.completed+"</td>"+
|
||||
"<td class=\"tr-date home-td date-short hide-xs\">"+torrent.date+"</td>"+
|
||||
"</tr>";
|
||||
|
|
|
@ -27,8 +27,8 @@ Templates.Add("torrents.item", function(torrent) {
|
|||
"</a>"+(torrent.torrent != "" ? " <a><div class=\"icon-floppy\"></div></a>" : "") +
|
||||
"</td>"+
|
||||
"<td class=\"tr-size home-td hide-xs\">"+humanFileSize(torrent.filesize)+"</td>"+
|
||||
"<td class=\"tr-se home-td hide-xs\">"+torrent.seeders+"</td>"+
|
||||
"<td class=\"tr-le home-td hide-xs\">"+torrent.leechers+"</td>"+
|
||||
"<td class=\"tr-se home-td hide-smol\">"+torrent.seeders+"</td>"+
|
||||
"<td class=\"tr-le home-td hide-smol\">"+torrent.leechers+"</td>"+
|
||||
"<td class=\"tr-dl home-td hide-xs\">"+torrent.completed+"</td>"+
|
||||
"<td class=\"tr-date home-td date-short hide-xs\">"+torrent.date+"</td>"+
|
||||
"</tr>";
|
||||
|
|
|
@ -19,10 +19,10 @@
|
|||
<th class="tr-links"></th>
|
||||
<th class="tr-size hide-xs"><a href="{{ genSearchWithOrdering(URL, "4") }}">{{ T("size")}}<span class="sort-arrows">{{ genSortArrows(URL, "4")|raw }}</span></a></th>
|
||||
|
||||
<th class="tr-se hide-xs">
|
||||
<th class="tr-se hide-smol">
|
||||
<a href="{{ genSearchWithOrdering(URL, "5") }}">{{ T("S")}}<span class="sort-arrows">{{ genSortArrows(URL, "5")|raw }}</span></a>
|
||||
</th>
|
||||
<th class="tr-le hide-xs">
|
||||
<th class="tr-le hide-smol">
|
||||
<a href="{{ genSearchWithOrdering(URL, "6") }}">{{ T("L")}}<span class="sort-arrows">{{ genSortArrows(URL, "6")|raw }}</span></a>
|
||||
</th>
|
||||
<th class="tr-dl hide-xs">
|
||||
|
@ -81,8 +81,8 @@
|
|||
{{if .LastScrape.IsZero}}
|
||||
<td class="home-td hide-xs" colspan="3">{{ T("unknown")}}</td>
|
||||
{{else}}
|
||||
<td class="tr-se home-td hide-xs">{{.Seeders}}</td>
|
||||
<td class="tr-le home-td hide-xs">{{.Leechers}}</td>
|
||||
<td class="tr-se home-td hide-smol">{{.Seeders}}</td>
|
||||
<td class="tr-le home-td hide-smol">{{.Leechers}}</td>
|
||||
<td class="tr-dl home-td hide-xs">{{.Completed}}</td>
|
||||
{{end}}
|
||||
<td class="tr-date home-td date-short hide-xs">{{.Date}}</td>
|
||||
|
|
|
@ -31,8 +31,8 @@
|
|||
<th class="tr-cs"></th>
|
||||
<th class="tr-links"></th>
|
||||
<th class="tr-size hide-xs">Size<span class="sort-arrows"><span class="sortarrowleft sortarrowdim">▼</span><span class="sortarrowdim">▲</span></span></th>
|
||||
<th class="tr-se hide-xs">S<span class="sort-arrows"><span class="sortarrowleft sortarrowdim">▼</span><span class="sortarrowdim">▲</span></span></th>
|
||||
<th class="tr-le hide-xs">L<span class="sort-arrows"><span class="sortarrowleft sortarrowdim">▼</span><span class="sortarrowdim">▲</span></span></th>
|
||||
<th class="tr-se hide-smol">S<span class="sort-arrows"><span class="sortarrowleft sortarrowdim">▼</span><span class="sortarrowdim">▲</span></span></th>
|
||||
<th class="tr-le hide-smol">L<span class="sort-arrows"><span class="sortarrowleft sortarrowdim">▼</span><span class="sortarrowdim">▲</span></span></th>
|
||||
<th class="tr-dl hide-xs">D<span class="sort-arrows"><span class="sortarrowleft sortarrowdim">▼</span><span class="sortarrowdim">▲</span></span></th>
|
||||
<th class="tr-date hide-xs">Date<span class="sort-arrows"><span class="sortarrowleft ">▼</span><span class="sortarrowdim">▲</span></span></th>
|
||||
</tr>
|
||||
|
@ -43,8 +43,8 @@
|
|||
<td class="tr-name home-td" colspan="2"><a></a></td>
|
||||
<td class="tr-links home-td"></td>
|
||||
<td class="tr-size home-td hide-xs"></td>
|
||||
<td class="tr-se home-td hide-xs"></td>
|
||||
<td class="tr-le home-td hide-xs"></td>
|
||||
<td class="tr-se home-td hide-smol"></td>
|
||||
<td class="tr-le home-td hide-smol"></td>
|
||||
<td class="tr-dl home-td hide-xs"></td>
|
||||
<td class="hide-xs"></td>
|
||||
</tr>
|
||||
|
@ -62,8 +62,8 @@
|
|||
<a title="Torrent file"><div class="icon-floppy"></div></a>
|
||||
</td>
|
||||
<td class="tr-size home-td hide-xs">570.4 MiB</td>
|
||||
<td class="tr-se home-td hide-xs">0</td>
|
||||
<td class="tr-le home-td hide-xs">0</td>
|
||||
<td class="tr-se home-td hide-smol">0</td>
|
||||
<td class="tr-le home-td hide-smol">0</td>
|
||||
<td class="tr-dl home-td hide-xs">0</td>
|
||||
<td class="tr-date home-td date-short hide-xs table-torrent-date" title="2017-07-12T16:58:29Z">Jul 12, 2017</td>
|
||||
</tr>
|
||||
|
@ -72,8 +72,8 @@
|
|||
<td class="tr-name home-td" colspan="2"><a></a></td>
|
||||
<td class="tr-links home-td"></td>
|
||||
<td class="tr-size home-td hide-xs"></td>
|
||||
<td class="tr-se home-td hide-xs"></td>
|
||||
<td class="tr-le home-td hide-xs"></td>
|
||||
<td class="tr-se home-td hide-smol"></td>
|
||||
<td class="tr-le home-td hide-smol"></td>
|
||||
<td class="tr-dl home-td hide-xs"></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
|
Référencer dans un nouveau ticket