Skip to content

Commit

Permalink
Simplify the embed loading state (#37548)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster authored Dec 22, 2021
1 parent 29e39d0 commit 8f90816
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
15 changes: 0 additions & 15 deletions packages/block-library/src/embed/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,7 @@

&.is-loading {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1em;
min-height: 200px;
text-align: center;

// Block UI appearance.
border-radius: $radius-block-ui;
background-color: $white;
box-shadow: inset 0 0 0 $border-width $gray-900;

p {
font-family: $default-font;
font-size: $default-font-size;
}
}

// Stops long URLs from breaking out of the no preview available screen
Expand Down
2 changes: 0 additions & 2 deletions packages/block-library/src/embed/embed-loading.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { Spinner } from '@wordpress/components';

const EmbedLoading = () => (
<div className="wp-block-embed is-loading">
<Spinner />
<p>{ __( 'Embedding…' ) }</p>
</div>
);

Expand Down

0 comments on commit 8f90816

Please sign in to comment.