diff --git a/renderer/views/app.js b/renderer/views/app.js
index fa2760a6..b691ba06 100644
--- a/renderer/views/app.js
+++ b/renderer/views/app.js
@@ -18,9 +18,9 @@ function App (state, dispatch) {
}
return hx`
-
+
${Header(state, dispatch)}
- ${getView()}
+ ${getView()}
`
}
diff --git a/renderer/views/header.js b/renderer/views/header.js
index d8926e74..eb9bd3cf 100644
--- a/renderer/views/header.js
+++ b/renderer/views/header.js
@@ -6,13 +6,13 @@ var hx = hyperx(h)
function Header (state, dispatch) {
return hx`
-
+
${getTitle()}
-
-
chevron_left
-
chevron_right
+
+ chevron_left
+ chevron_right
-
@@ -20,13 +20,13 @@ function Header (state, dispatch) {
function getTitle () {
if (process.platform === 'darwin') {
- return hx`${state.view.title}
`
+ return hx`${state.view.title}`
}
}
function plusButton () {
if (state.view.url !== '/player') {
- return hx`add`
+ return hx`add`
}
}
diff --git a/renderer/views/player.js b/renderer/views/player.js
index 4c6f447c..49c8f08b 100644
--- a/renderer/views/player.js
+++ b/renderer/views/player.js
@@ -26,7 +26,7 @@ function Player (state, dispatch) {
// Show the video as large as will fit in the window, play immediately
return hx`
-
+
- dispatch('playPause')}>
+ dispatch('playPause')}>
${state.video.isPaused ? 'play_arrow' : 'pause'}
@@ -104,14 +104,14 @@ function renderLoadingBar (state) {
// Output an list of rectangles to show loading progress
return hx`
-
+
${parts.map(function (part) {
var style = {
left: (100 * part.start / numParts) + '%',
width: (100 * part.count / numParts) + '%'
}
- return hx``
+ return hx` `
})}
`
diff --git a/renderer/views/torrent-list.js b/renderer/views/torrent-list.js
index 5c3d63a1..1c387bdd 100644
--- a/renderer/views/torrent-list.js
+++ b/renderer/views/torrent-list.js
@@ -11,7 +11,7 @@ function TorrentList (state, dispatch) {
: []
var list = torrents.map((torrent) => renderTorrent(state, dispatch, torrent))
- return hx`${list}
`
+ return hx`${list}`
}
// Renders a torrent in the torrent list
@@ -63,16 +63,16 @@ function renderTorrent (state, dispatch, torrent) {
`)
}
- return hx`${elements}
`
+ return hx`${elements}`
}
// Renders the torrent name and download progress
function renderTorrentMetadata (torrent) {
return hx`
-
-
${torrent.name || 'Loading torrent...'}
-
-
${Math.floor(100 * torrent.progress)}%
+
+ ${torrent.name || 'Loading torrent...'}
+
+ ${Math.floor(100 * torrent.progress)}%
${getFilesLength()}
${getPeers()}
@@ -88,7 +88,7 @@ function renderTorrentMetadata (torrent) {
function getFilesLength () {
if (torrent.ready && torrent.files.length > 1) {
- return hx`${torrent.files.length} files`
+ return hx`${torrent.files.length} files`
}
}
}