Skip to content

Commit d06737d

Browse files
committed
Fix wp_editor responsiveness
When used fixed width smaller screens didn't shrink the width. Setting to max-width will keep large screen the same as before but smaller screen will have dynamic width. Signed-off-by: Roi Dayan <roi.dayan@gmail.com>
1 parent c707d22 commit d06737d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

class.settings-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ function callback_wysiwyg( $args ) {
283283
$value = $this->get_option( $args['id'], $args['section'], $args['std'] );
284284
$size = isset( $args['size'] ) && !is_null( $args['size'] ) ? $args['size'] : '500px';
285285

286-
echo '<div style="width: ' . $size . ';">';
286+
echo '<div style="max-width: ' . $size . ';">';
287287

288288
$editor_settings = array(
289289
'teeny' => true,

0 commit comments

Comments
 (0)