Skip to content

Commit

Permalink
Fix broken upload button layout while uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat authored and imorland committed Sep 24, 2021
1 parent e969593 commit 51ad758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/forum/components/UploadButton.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import app from 'flarum/common/app';
import app from 'flarum/forum/app';
import Component from 'flarum/common/Component';
import Button from 'flarum/common/components/Button';
import LoadingIndicator from 'flarum/common/components/LoadingIndicator';
Expand Down Expand Up @@ -40,7 +40,7 @@ export default class UploadButton extends Component {
onclick={this.uploadButtonClicked.bind(this)}
disabled={this.attrs.disabled}
>
{this.attrs.uploader.uploading && <LoadingIndicator size="small" className="LoadingIndicator--inline Button-icon" />}
{this.attrs.uploader.uploading && <LoadingIndicator size="small" display="inline" className="Button-icon" />}
{(this.isMediaUploadButton || this.attrs.uploader.uploading) && <span className="Button-label">{buttonText}</span>}
<form>
<input type="file" multiple={true} onchange={this.process.bind(this)} />
Expand Down

0 comments on commit 51ad758

Please sign in to comment.