Skip to content

Commit

Permalink
[Fix] File Block center align behavior (#8303)
Browse files Browse the repository at this point in the history
* Fix file block center align behavior

* Introduce new selector for content container and apply CSS to it instead
  • Loading branch information
Nahid F. Mohit authored and noisysocks committed Aug 1, 2018
1 parent 54990c0 commit f9f20aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core-blocks/file/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class FileEdit extends Component {
</Toolbar>
</BlockControls>
<div className={ classes }>
<div>
<div className={ `${ className }__content-wrapper` }>
<RichText
wrapperClassName={ `${ className }__textlink` }
tagName="div" // must be block-level or else cursor disappears
Expand Down
4 changes: 4 additions & 0 deletions core-blocks/file/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
@include loading_fade;
}

&__content-wrapper {
flex-grow: 1;
}

&__textlink {
display: inline-block;
color: $blue-medium-700;
Expand Down

0 comments on commit f9f20aa

Please sign in to comment.