Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added progress bar to the metadata on the overview #844

Merged
merged 4 commits into from Sep 1, 2016

Conversation

PurgingPanda
Copy link
Contributor

#796

Added simple progress bar using the build in html tag.

I hope this (minor) addition is usefull.

@noamokman
Copy link
Contributor

Can you provide a print screen?

@@ -105,6 +106,11 @@ module.exports = class TorrentList extends React.Component {

return (<div key='metadata' className='metadata'>{elements}</div>)

function renderProgressBar () {
var progress = Math.floor(100 * prog.progress)
return (<progress value={progress} max='100'>{progress}%</progress>)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Digging the simplicity

@dcposch
Copy link
Contributor

dcposch commented Aug 31, 2016

Here's what it looks like now:

screen shot 2016-08-30 at 8 55 26 pm

I think it's a good start, but needs a bit of CSS.

@dcposch
Copy link
Contributor

dcposch commented Aug 31, 2016

@PurgingPanda how about this?

screen shot 2016-08-30 at 8 58 40 pm

Smaller progress bar plus a bit of spacing.

progress {
  width: 60px;
  margin-right: 8px;
}

As proposed by dcposh.
@dcposch
Copy link
Contributor

dcposch commented Sep 1, 2016

LGTM

@dcposch dcposch merged commit d806fd5 into webtorrent:master Sep 1, 2016
@Goldob
Copy link
Contributor

Goldob commented Sep 2, 2016

Good idea. It doesn't look that nice on Windows though:

image

I

@dcposch dcposch mentioned this pull request Sep 2, 2016
@lock lock bot locked as resolved and limited conversation to collaborators May 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants