Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes position of upload svg on mobile #2693

Merged
merged 2 commits into from
Sep 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}
}