Skip to content

Commit

Permalink
Merge pull request #2693 from WordPress/try/mobile-upload-svg-position
Browse files Browse the repository at this point in the history
Fixes position of upload svg on mobile
  • Loading branch information
gziolo authored Sep 22, 2017
2 parents a93c553 + b2d861b commit 26369c3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 0 additions & 1 deletion blocks/library/image/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
}
}


.wp-block-image__resize-handler-top-right,
.wp-block-image__resize-handler-bottom-right,
.wp-block-image__resize-handler-top-left,
Expand Down
3 changes: 2 additions & 1 deletion components/form-file-upload/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Component } from 'element';
/**
* Internal dependencies
*/
import './style.scss';
import IconButton from '../icon-button';

class FormFileUpload extends Component {
Expand All @@ -27,7 +28,7 @@ class FormFileUpload extends Component {
const { children, multiple = false, accept, onChange, ...props } = this.props;

return (
<div>
<div className="components-form-file-upload">
<IconButton
icon="upload"
onClick={ this.openFileDialog }
Expand Down
11 changes: 11 additions & 0 deletions components/form-file-upload/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.components-form-file-upload {
.button.button-large {
font-size: 0;
padding: 6px 0 3px;

@include break-large() {
font-size: inherit;
padding: 0 12px 2px;
}
}
}

0 comments on commit 26369c3

Please sign in to comment.