Merge pull request #98 from lbryio/word-break-modals
Change wrapping of file path in "Download Succeeded" Modal
This commit is contained in:
commit
f086b47f80
2 changed files with 7 additions and 2 deletions
|
@ -138,8 +138,9 @@ var DownloadLink = React.createClass({
|
||||||
<span className="button-container">
|
<span className="button-container">
|
||||||
<Link button={this.props.button} hidden={this.props.hidden} style={this.props.style}
|
<Link button={this.props.button} hidden={this.props.hidden} style={this.props.style}
|
||||||
disabled={this.state.downloading} label={label} icon={this.props.icon} onClick={this.handleClick} />
|
disabled={this.state.downloading} label={label} icon={this.props.icon} onClick={this.handleClick} />
|
||||||
<Modal isOpen={this.state.modal == 'downloadStarted'} onConfirmed={this.closeModal}>
|
<Modal className="download-started-modal" isOpen={this.state.modal == 'downloadStarted'} onConfirmed={this.closeModal}>
|
||||||
Downloading to {this.state.filePath}
|
<p>Downloading to:</p>
|
||||||
|
<div className="download-started-modal__file-path">{this.state.filePath}</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
<Modal isOpen={this.state.modal == 'notEnoughCredits'} onConfirmed={this.closeModal}>
|
<Modal isOpen={this.state.modal == 'notEnoughCredits'} onConfirmed={this.closeModal}>
|
||||||
You don't have enough LBRY credits to pay for this stream.
|
You don't have enough LBRY credits to pay for this stream.
|
||||||
|
|
|
@ -351,4 +351,8 @@ input[type="text"], input[type="search"]
|
||||||
.error-modal__warning-symbol {
|
.error-modal__warning-symbol {
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
margin-right: 7px;
|
margin-right: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download-started-modal__file-path {
|
||||||
|
word-break: break-all;
|
||||||
}
|
}
|
Loading…
Reference in a new issue