[wp-trac] [WordPress Trac] #53636: "Insert from URL": top of preview is cut off

WordPress Trac noreply at wordpress.org
Wed Nov 24 06:43:36 UTC 2021


#53636: "Insert from URL": top of preview is cut off
------------------------------------+--------------------------------------
 Reporter:  siliconforks            |       Owner:  sabernhardt
     Type:  defect (bug)            |      Status:  accepted
 Priority:  normal                  |   Milestone:  5.9
Component:  Media                   |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch needs-        |     Focuses:  ui, css, administration
  testing                           |
------------------------------------+--------------------------------------

Comment (by Ankit K Gupta):

 == Test Report

 === Env
 * WordPress 5.9-alpha-51272-src
 * Chrome Version - 96.0.4664.55 (Official Build) (x86_64)
 * OS -  macOS Monterey
 * Theme: Twenty Twenty One
 * Editor - Classic Editor
 * PHP - 8.0.0
 * Web Server - nginx
 * Database - MySQL 8.0.16

 === Steps to test

 1. Install the "Classic Editor" plugin.
 2. Go to "Pages", then "Add New".
 3. Click the "Add Media" button.
 4. Click "Insert from URL".
 5. Enter the URL of an image. A preview of the image will be displayed
 below the URL field.

 === Test result

 Working expected now. Image preview has proper margin from top and bottom.
 Tested with small as well as large size images.

 Screencast example:

 **Before Fix (Large Image) -**

 [[Image(https://i.imgur.com/lnD2zhK.jpg)]]

 **After Fix -**

 [[Image(https://i.imgur.com/2wiE3db.jpg)]]


 **Before Fix (Small Image) -**

 [[Image(https://i.imgur.com/2dhIqP5.jpg)]]


 **After Fix -**

 [[Image(https://i.imgur.com/zVoZFEY.jpg)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53636#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list