Skip to content

Commit

Permalink
Prevent welcome guide overflow x scroll (#34713)
Browse files Browse the repository at this point in the history
* fit image width

to prevent overflow x image width should be 100%

* undo html with attr

* fix for posts editor

* fix for widgets editor

* Lint whitespace

Co-authored-by: Mitchell Austin <mr.fye@oneandthesame.net>
  • Loading branch information
amir2mi and stokesman authored Sep 15, 2021
1 parent d065e74 commit 8ce7f51
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/edit-post/src/components/welcome-guide/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
&__image {
background: #00a0d2;
margin: 0 0 $grid-unit-20;
> img {
display: block;
max-width: 100%;
object-fit: cover;
}
}

&__heading {
Expand Down
5 changes: 5 additions & 0 deletions packages/edit-widgets/src/components/welcome-guide/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
&__image {
background: #00a0d2;
margin: 0 0 $grid-unit-20;
> img {
display: block;
max-width: 100%;
object-fit: cover;
}
}

&__heading {
Expand Down

0 comments on commit 8ce7f51

Please sign in to comment.