From 096b977f4561eae87a60cdf162511e1db020e07b Mon Sep 17 00:00:00 2001 From: nfmohit Date: Mon, 30 Jul 2018 22:27:24 +0600 Subject: [PATCH 1/2] Fix file block center align behavior --- core-blocks/file/editor.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core-blocks/file/editor.scss b/core-blocks/file/editor.scss index ba49db83ba9fe9..e3ee78110288d7 100644 --- a/core-blocks/file/editor.scss +++ b/core-blocks/file/editor.scss @@ -4,6 +4,10 @@ align-items: center; margin-bottom: 0; + > div { + flex-grow: 1; + } + &.is-transient { @include loading_fade; } From cf350592d5c30ac1fd7681c8a28357627f651950 Mon Sep 17 00:00:00 2001 From: nfmohit Date: Tue, 31 Jul 2018 23:48:28 +0600 Subject: [PATCH 2/2] Introduce new selector for content container and apply CSS to it instead --- core-blocks/file/edit.js | 2 +- core-blocks/file/editor.scss | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core-blocks/file/edit.js b/core-blocks/file/edit.js index 86e99e081808ae..df75276db5f025 100644 --- a/core-blocks/file/edit.js +++ b/core-blocks/file/edit.js @@ -189,7 +189,7 @@ class FileEdit extends Component {
-
+
div { - flex-grow: 1; - } - &.is-transient { @include loading_fade; } + &__content-wrapper { + flex-grow: 1; + } + &__textlink { display: inline-block; color: $blue-medium-700;