#34539 closed defect (bug) (fixed)
Image Sizes input fields on Media Settings page is too small
Reported by: | Toru | Owned by: | melchoyce |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | good-first-bug ui-feedback has-patch has-screenshots |
Focuses: | ui, administration | Cc: |
Description
On Media Settings page, when viewed on smartphones (or under 784 pixel width), input field for Image Sizes are shorten, and "max-width: 55px" kicks in. When the input value is 3 digits, it is ok, but when 4 digits, 1 digit is not shown. The "max-width: 55px" needs to modified.
Please see captures on Chrome developer tools - iPhone 5, 6, 6 plus.
Attachments (9)
Change History (35)
#1
@
9 years ago
- Summary changed from Media Settings to Image Sizes input fields on Media Settings page is too small
This ticket was mentioned in Slack in #core-media by desrosj. View the logs.
7 years ago
#6
@
7 years ago
Following the bug scrub on slack today, here comes a refreshed patch.
We have this (only) in
\wp-admin\options-discussion.php
\wp-admin\options-general.php
\wp-admin\options-media.php
\wp-admin\options-reading.php
\wp-admin\options-writing.php
and therefore this should be a non breaking fix (despite the fact that it get's ugly all around when you constrict the browser window to a very small size..)
This ticket was mentioned in Slack in #core-media by presskopp. View the logs.
7 years ago
This ticket was mentioned in Slack in #core-media by desrosj. View the logs.
7 years ago
#12
@
7 years ago
I was able to reproduce the issue on each of the screens mentioned by @Presskopp, and the patches (which are identical) fixed the problem on iPhone 6/6 plus up, and the Android devices I was able to test (using the Chrome inspector), but on iPhone 5 the length causes the height fields to bump to the next line (see screenshot).
It is worth noting that this change will fix the Discussion, Media, Reading, and Writing settings pages because of the expected input data unlikely being more than 4 characters long (width & height, posts to display, days to close post comments after, top level comments to display on one page, port number), but will not fix the General settings page fields.
The General settings page uses .small-text
for a PHP date format strings for dates and times (and has a separate CSS definition), which could easily become too long for the new width. I opened a separate ticket for this (#41603) problem.
#13
@
7 years ago
- Keywords needs-patch ui-feedback added; has-patch needs-testing removed
Looks like we need to do some more work here to avoid the strange wrapping behavior on smaller screens. Something as simple as a targeted media query to only apply the wider input size above ~350px could do the trick, but it may be worth looking at the base HTML there and seeing if we can make those media label/inputs break to two lines on smaller devices.
#14
@
7 years ago
- Keywords has-patch added; needs-patch removed
After following the discussion I've added the previous width fix into 34539.3.diff
and also added some simple spans with a minor css update to convert those fields into new lines as proposed by @joemcgill .
I've added the css into common.css
instead of forms as I guess it could be used elsewhere as well if needed in the future. I don't know if that was the correct choice though so please advice if I have to move it to forms or add any other changes.
Tests on windows look ok but I have no access on a Mac so if somebody could have a look at it on Safari etc would be awesome.
Best regards,
Konstantinos
This ticket was mentioned in Slack in #design by karmatosed. View the logs.
7 years ago
#19
@
7 years ago
I think adding this in is better than what we have, although ideally sorting the text wrap would be good.
#20
@
7 years ago
You know what, let's just commit what we have and worry about text wrapping later. @desrosj, want to do a final review?
#23
@
7 years ago
Was reading the related #42724 and came back here for some background. I've noticed in this ticket there isn't an uploaded patch that contains the changes that were committed. I'd like to kindly remind that uploading a patch is essential for review from other contributors, discussion, and history.
Media setting on iPhone 5