From 2e22f7be2ed202cef380c1c90913926761cfd741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Rodr=C3=ADguez?= Date: Tue, 1 Dec 2015 01:34:04 -0500 Subject: [PATCH] Fixed scrollbars and spaces --- app.coffee | 4 ++-- index.jade | 17 +++++++++++------ style.sass | 4 ++-- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/app.coffee b/app.coffee index a5a2eb7..561a4ab 100644 --- a/app.coffee +++ b/app.coffee @@ -8,7 +8,7 @@ trackers = [ [ 'ws://tracker.fastcast.nz' ] ] -opts = {announceList: trackers} +opts = {announce: trackers} client = new WebTorrent debug = true @@ -70,7 +70,7 @@ app.controller 'bTorrentCtrl', ['$scope','$http','$log','$location', ($scope, $h if $scope.torrentInput != '' $scope.client.processing = true dbg 'Adding ' + $scope.torrentInput - $scope.client.add $scope.torrentInput, $scope.onTorrent + $scope.client.add $scope.torrentInput, opts, $scope.onTorrent $scope.torrentInput = '' return diff --git a/index.jade b/index.jade index 7389a2d..22e7a00 100644 --- a/index.jade +++ b/index.jade @@ -57,21 +57,26 @@ html(ng-app='bTorrent', lang='en') | {{torrent.pSize | pbytes}} in a(href='#', onclick='return false;', ng-click='toggleTorrent(torrent)') {{torrent.files.length}} files td(ng-hide='client.done()') - | {{torrent.downloaded | pbytes}} + | {{torrent.downloaded | pbytes}} span.subInfo ({{torrent.pProgress}}%) br span.subInfo @ {{torrent.downloadSpeed() | pbytes}}/s - td(ng-hide='client.done()') {{torrent.tRemaining}} - td(ng-hide='client.downloading()') {{torrent.uploaded | pbytes}} + td(ng-hide='client.done()') + | {{torrent.tRemaining}} + td(ng-hide='client.downloading()') + | {{torrent.uploaded | pbytes}} br span.subInfo @ {{torrent.uploadSpeed() | pbytes}}/s td {{torrent.swarm.wires.length}} td - a(ng-href='#{{torrent.infoHash}}', target='_blank') βTorrent + a(ng-href='#{{torrent.infoHash}}', target='_blank') + | βTorrent | - a(ng-href='{{torrent.magnetURI}}', target='_blank') Magnet URI + a(ng-href='{{torrent.magnetURI}}', target='_blank') + | Magnet URI | - a(ng-href='{{torrent.oTorrentFileURL}}', target='_blank', download='{{torrent.fileName}}') .torrent + a(ng-href='{{torrent.oTorrentFileURL}}', target='_blank', download='{{torrent.fileName}}') + | .torrent br span.subInfo i.fa.fa-hashtag diff --git a/style.sass b/style.sass index 41bef12..6e1f6b0 100644 --- a/style.sass +++ b/style.sass @@ -9,7 +9,7 @@ th, td padding-left: 10px padding-right: 10px max-width: 200px - overflow: scroll + overflow: auto white-space: nowrap .version @@ -39,4 +39,4 @@ th, td .selectedTorrent background: rgb(100, 100, 100) - background: rgba(100, 100, 100, 0.06) \ No newline at end of file + background: rgba(100, 100, 100, 0.06)