mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
fix the options tab form layout
This commit is contained in:
parent
c6deb9ec8b
commit
672a4debae
2 changed files with 62 additions and 19 deletions
|
@ -41,6 +41,7 @@ input {
|
||||||
.x-deluge-dht, .x-btn .x-deluge-dht { background-image: url('/icons/dht.png'); }
|
.x-deluge-dht, .x-btn .x-deluge-dht { background-image: url('/icons/dht.png'); }
|
||||||
.x-deluge-connections, .x-btn .x-deluge-connections { background-image: url('/icons/connections.png') }
|
.x-deluge-connections, .x-btn .x-deluge-connections { background-image: url('/icons/connections.png') }
|
||||||
.x-deluge-traffic, .x-btn .x-deluge-traffic { background-image: url('/icons/traffic.png') }
|
.x-deluge-traffic, .x-btn .x-deluge-traffic { background-image: url('/icons/traffic.png') }
|
||||||
|
.x-deluge-edit-trackers, .x-btn .x-deluge-edit-trackers {background-image: url('/icons/edit_trackers.png'); }
|
||||||
|
|
||||||
|
|
||||||
/* Torrent Details */
|
/* Torrent Details */
|
||||||
|
@ -161,6 +162,11 @@ input {
|
||||||
padding-top: 0px;
|
padding-top: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Options Tab Styles */
|
||||||
|
.x-deluge-options-label {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Sidebar styles */
|
/* Sidebar styles */
|
||||||
#sidebar .x-grid3-col-filter {
|
#sidebar .x-grid3-col-filter {
|
||||||
|
|
|
@ -503,7 +503,7 @@ Deluge.Details.Panel = new Ext.TabPanel({
|
||||||
items: [{
|
items: [{
|
||||||
layout: 'column',
|
layout: 'column',
|
||||||
defaults: {
|
defaults: {
|
||||||
columnWidth: '.25',
|
columnWidth: '.33',
|
||||||
border: false
|
border: false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -514,29 +514,51 @@ Deluge.Details.Panel = new Ext.TabPanel({
|
||||||
title: _('Bandwidth'),
|
title: _('Bandwidth'),
|
||||||
layout: 'table',
|
layout: 'table',
|
||||||
bodyStyle:'padding:5px',
|
bodyStyle:'padding:5px',
|
||||||
layoutConfig: {columns: 2},
|
layoutConfig: {columns: 3},
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
labelWidth: 150,
|
labelWidth: 150,
|
||||||
defaultType: 'uxspinner',
|
defaultType: 'uxspinner',
|
||||||
items: [{
|
items: [{
|
||||||
fieldLabel: _('Max Download Speed'),
|
xtype: 'label',
|
||||||
name: 'max_download_speed',
|
text: _('Max Download Speed'),
|
||||||
html: '1,1'
|
forId: 'max_download_speed',
|
||||||
|
cls: 'x-deluge-options-label'
|
||||||
|
}, {
|
||||||
|
id: 'max_download_speed',
|
||||||
|
width: 100
|
||||||
}, {
|
}, {
|
||||||
xtype: 'label',
|
xtype: 'label',
|
||||||
text: 'KiB/s',
|
text: 'KiB/s',
|
||||||
html: '1,2'
|
style: 'margin-left: 10px;'
|
||||||
}, {
|
}, {
|
||||||
fieldLabel: _('Max Upload Speed'),
|
xtype: 'label',
|
||||||
name: 'max_upload_speed',
|
text: _('Max Upload Speed'),
|
||||||
|
forId: 'max_upload_speed',
|
||||||
|
cls: 'x-deluge-options-label'
|
||||||
|
}, {
|
||||||
|
id: 'max_upload_speed',
|
||||||
width: 100
|
width: 100
|
||||||
}, {
|
}, {
|
||||||
fieldLabel: _('Max Connections'),
|
xtype: 'label',
|
||||||
name: 'max_connections',
|
text: 'KiB/s',
|
||||||
|
style: 'margin-left: 10px;'
|
||||||
|
}, {
|
||||||
|
xtype: 'label',
|
||||||
|
text: _('Max Connections'),
|
||||||
|
forId: 'max_connections',
|
||||||
|
cls: 'x-deluge-options-label'
|
||||||
|
}, {
|
||||||
|
id: 'max_connections',
|
||||||
|
colspan: 2,
|
||||||
width: 100
|
width: 100
|
||||||
}, {
|
}, {
|
||||||
fieldLabel: _('Max Upload Slots'),
|
xtype: 'label',
|
||||||
name: 'max_upload_slots',
|
text: _('Max Upload Slots'),
|
||||||
|
forId: 'max_upload_slots',
|
||||||
|
cls: 'x-deluge-options-label'
|
||||||
|
}, {
|
||||||
|
id: 'max_upload_slots',
|
||||||
|
colspan: 2,
|
||||||
width: 100
|
width: 100
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
|
@ -546,28 +568,28 @@ Deluge.Details.Panel = new Ext.TabPanel({
|
||||||
xtype: 'fieldset',
|
xtype: 'fieldset',
|
||||||
title: _('Queue'),
|
title: _('Queue'),
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
labelWidth: 10,
|
labelWidth: 1,
|
||||||
defaultType: 'checkbox',
|
defaultType: 'checkbox',
|
||||||
items: [{
|
items: [{
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
boxLabel: _('Auto Managed'),
|
boxLabel: _('Auto Managed'),
|
||||||
name: 'auto_managed'
|
id: 'auto_managed'
|
||||||
}, {
|
}, {
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
boxLabel: _('Stop seed at ratio'),
|
boxLabel: _('Stop seed at ratio'),
|
||||||
name: 'stop_ratio'
|
id: 'stop_ratio'
|
||||||
}, {
|
}, {
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
boxLabel: _('Remove at ratio'),
|
boxLabel: _('Remove at ratio'),
|
||||||
name: 'remove_ratio'
|
id: 'remove_ratio'
|
||||||
}, {
|
}, {
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
boxLabel: _('Move Completed'),
|
boxLabel: _('Move Completed'),
|
||||||
name: 'move_completed'
|
id: 'move_completed'
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
}, {
|
}, {
|
||||||
|
@ -577,16 +599,31 @@ Deluge.Details.Panel = new Ext.TabPanel({
|
||||||
title: _('General'),
|
title: _('General'),
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
defaultType: 'checkbox',
|
defaultType: 'checkbox',
|
||||||
|
labelWidth: 1,
|
||||||
items: [{
|
items: [{
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
boxLabel: _('Private'),
|
boxLabel: _('Private'),
|
||||||
name: 'private'
|
id: 'private'
|
||||||
}, {
|
}, {
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
boxLabel: _('Prioritize First/Last'),
|
boxLabel: _('Prioritize First/Last'),
|
||||||
name: 'prioritize_first'
|
id: 'prioritize_first'
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
layout: 'column',
|
||||||
|
items: [{
|
||||||
|
id: 'edit_trackers',
|
||||||
|
xtype: 'button',
|
||||||
|
text: _('Edit Trackers'),
|
||||||
|
cls: 'x-btn-text-icon',
|
||||||
|
iconCls: 'x-deluge-edit-trackers'
|
||||||
|
}, {
|
||||||
|
id: 'apply',
|
||||||
|
xtype: 'button',
|
||||||
|
text: _('Apply'),
|
||||||
|
style: 'margin-left: 10px'
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue