improve downloads section

This commit is contained in:
SpikeHD
2022-05-17 17:49:25 -07:00
parent 0c4ac1e315
commit 163e36b501
2 changed files with 21 additions and 1 deletions

View File

@@ -9,4 +9,21 @@
.DownloadSection {
overflow: hidden;
width: 100%;
margin: 6px 0px;
}
.DownloadTitle {
display: flex;
flex-direction: row;
}
.DownloadPath {
text-overflow: ellipsis;
width: 250px;
overflow: hidden;
}
.DownloadStatus {
text-align: right;
}

View File

@@ -21,7 +21,10 @@ export default class DownloadSection extends React.Component<IProps, never> {
render() {
return (
<div className="DownloadSection">
<span>{this.getFilenameFromPath()} - {this.props.downloadManager.getDownloadSize(this.props.downloadName)}</span>
<div className="DownloadTitle">
<div className="DownloadPath">{this.getFilenameFromPath()}</div>
<div className="DownloadStatus"> - {this.props.downloadManager.getDownloadSize(this.props.downloadName)}</div>
</div>
<div className="DownloadSectionInner">
<ProgressBar path={this.props.downloadName} downloadManager={this.props.downloadManager} />
</div>