Skip to content

Commit

Permalink
Fix image upload button on mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Sep 22, 2017
1 parent dbe1857 commit b2d861b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 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;
}
}
}
7 changes: 0 additions & 7 deletions editor/header/tools/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,6 @@
margin-bottom: 0;
}

@media ( max-width: $break-large ) {
.wp-core-ui .button.wp-block-image__upload-button.button.button-large {
padding: 6px 21px 6px 6px;
width: 15px;
}
}

.editor-tools__publish-button.is-saving,
.editor-tools__publish-button.is-saving:disabled {
position: relative;
Expand Down

0 comments on commit b2d861b

Please sign in to comment.