mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2026-02-05 17:56:53 +01:00
improve downloads section
This commit is contained in:
@@ -9,4 +9,21 @@
|
|||||||
.DownloadSection {
|
.DownloadSection {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
margin: 6px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.DownloadTitle {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.DownloadPath {
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
width: 250px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.DownloadStatus {
|
||||||
|
text-align: right;
|
||||||
}
|
}
|
||||||
@@ -21,7 +21,10 @@ export default class DownloadSection extends React.Component<IProps, never> {
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className="DownloadSection">
|
<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">
|
<div className="DownloadSectionInner">
|
||||||
<ProgressBar path={this.props.downloadName} downloadManager={this.props.downloadManager} />
|
<ProgressBar path={this.props.downloadName} downloadManager={this.props.downloadManager} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user