Skip to content

Commit 08d4c4c

Browse files
talldanimath
andcommitted
Ensure form elements have bottom margin to separate them on tiny screens
Co-authored-by: imath <math.viet@gmail.com>
1 parent 2bd7d59 commit 08d4c4c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/editor/src/components/media-placeholder/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class MediaPlaceholder extends Component {
156156
>
157157
<input
158158
type="url"
159-
className="components-placeholder__input"
159+
className="components-placeholder__input editor-media-placeholder__url-input"
160160
aria-label={ labels.title }
161161
placeholder={ __( 'Enter URL here…' ) }
162162
onChange={ this.onChangeSrc }

packages/editor/src/components/media-placeholder/style.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22
max-width: 400px;
33

44
.editor-media-placeholder__url-input-form {
5-
margin-top: 1em;
5+
margin-top: 0.5rem;
66
max-width: none;
77
}
88
}
99

10+
.editor-media-placeholder__url-input {
11+
margin-bottom: 0.5rem;
12+
}
13+
1014
.editor-media-placeholder__upload-button.components-button {
1115
margin-right: 5px;
16+
margin-bottom: 0.5rem;
1217

1318
.dashicon {
1419
vertical-align: middle;

0 commit comments

Comments
 (0)