mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
Merge pull request #4620 from buinsky/WebUI_add_style
WebUI: Move style of dynamic table header to CSS
This commit is contained in:
commit
d31ccbde15
@ -88,3 +88,7 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tr.dynamicTableHeader {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
@ -67,7 +67,7 @@
|
|||||||
<div id="peers">
|
<div id="peers">
|
||||||
<table class="torrentTable" cellpadding="0" cellspacing="0" style="width: 100%">
|
<table class="torrentTable" cellpadding="0" cellspacing="0" style="width: 100%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr id="torrentPeersTableHeader">
|
<tr id="torrentPeersTableHeader" class="dynamicTableHeader">
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="torrentPeersTable"></tbody>
|
<tbody id="torrentPeersTable"></tbody>
|
||||||
|
@ -439,18 +439,18 @@ var TorrentsTable = new Class({
|
|||||||
Extends: DynamicTable,
|
Extends: DynamicTable,
|
||||||
|
|
||||||
initColumns : function () {
|
initColumns : function () {
|
||||||
this.newColumn('priority', 'width: 30px; cursor: pointer', '#');
|
this.newColumn('priority', 'width: 30px', '#');
|
||||||
this.newColumn('state_icon', 'width: 16px', '');
|
this.newColumn('state_icon', 'width: 16px; cursor: default', '');
|
||||||
this.newColumn('name', 'min-width: 200px; cursor: pointer', 'QBT_TR(Name)QBT_TR');
|
this.newColumn('name', 'min-width: 200px', 'QBT_TR(Name)QBT_TR');
|
||||||
this.newColumn('size', 'width: 100px; cursor: pointer', 'QBT_TR(Size)QBT_TR');
|
this.newColumn('size', 'width: 100px', 'QBT_TR(Size)QBT_TR');
|
||||||
this.newColumn('progress', 'width: 80px; cursor: pointer', 'QBT_TR(Done)QBT_TR');
|
this.newColumn('progress', 'width: 80px', 'QBT_TR(Done)QBT_TR');
|
||||||
this.newColumn('num_seeds', 'width: 100px; cursor: pointer', 'QBT_TR(Seeds)QBT_TR');
|
this.newColumn('num_seeds', 'width: 100px', 'QBT_TR(Seeds)QBT_TR');
|
||||||
this.newColumn('num_leechs', 'width: 100px; cursor: pointer', 'QBT_TR(Peers)QBT_TR');
|
this.newColumn('num_leechs', 'width: 100px', 'QBT_TR(Peers)QBT_TR');
|
||||||
this.newColumn('dlspeed', 'width: 100px; cursor: pointer', 'QBT_TR(Down Speed)QBT_TR');
|
this.newColumn('dlspeed', 'width: 100px', 'QBT_TR(Down Speed)QBT_TR');
|
||||||
this.newColumn('upspeed', 'width: 100px; cursor: pointer', 'QBT_TR(Up Speed)QBT_TR');
|
this.newColumn('upspeed', 'width: 100px', 'QBT_TR(Up Speed)QBT_TR');
|
||||||
this.newColumn('eta', 'width: 100px; cursor: pointer', 'QBT_TR(ETA)QBT_TR');
|
this.newColumn('eta', 'width: 100px', 'QBT_TR(ETA)QBT_TR');
|
||||||
this.newColumn('ratio', 'width: 100px; cursor: pointer', 'QBT_TR(Ratio)QBT_TR');
|
this.newColumn('ratio', 'width: 100px', 'QBT_TR(Ratio)QBT_TR');
|
||||||
this.newColumn('label', 'width: 100px; cursor: pointer', 'QBT_TR(Label)QBT_TR');
|
this.newColumn('label', 'width: 100px', 'QBT_TR(Label)QBT_TR');
|
||||||
|
|
||||||
this.columns['state_icon'].onclick = '';
|
this.columns['state_icon'].onclick = '';
|
||||||
this.columns['state_icon'].dataProperties[0] = 'state';
|
this.columns['state_icon'].dataProperties[0] = 'state';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<table class="torrentTable" cellpadding="0" cellspacing="0">
|
<table class="torrentTable" cellpadding="0" cellspacing="0">
|
||||||
<thead>
|
<thead>
|
||||||
<tr id="torrentsTableHeader">
|
<tr id="torrentsTableHeader" class="dynamicTableHeader">
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="torrentsTable"></tbody>
|
<tbody id="torrentsTable"></tbody>
|
||||||
|
Loading…
Reference in New Issue
Block a user