Here are three in particular that fit neatly in a screenshot:
- The search field’s input height
- The actions’ select
- The "Go" button
In all three cases, the fix is as simple as converting the height from
pixels to rem (divide by 16).
--
Ticket URL: <https://code.djangoproject.com/ticket/34095>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "Screenshot 2022-10-13 at 17.58.12.png" added.
Old description:
> There are a lot of form controls in the admin that use hard-coded heights
> in pixels. This is problematic for users which change the font size, as
> the text then overflows / the UI looks broken.
>
> Here are three in particular that fit neatly in a screenshot:
>
> - The search field’s input height
> - The actions’ select
> - The "Go" button
>
> In all three cases, the fix is as simple as converting the height from
> pixels to rem (divide by 16).
New description:
There are a lot of form controls in the admin that use hard-coded heights
in pixels. This is problematic for users which change the font size, as
the text then overflows / the UI looks broken.
Here are three in particular that fit neatly in a screenshot:
https://code.djangoproject.com/raw-
attachment/ticket/34095/Screenshot%202022-10-13%20at%2017.58.12.png
- The search field’s input height
- The actions’ select
- The "Go" button
In all three cases, the fix is as simple as converting the height from
pixels to rem (divide by 16).
--
--
Ticket URL: <https://code.djangoproject.com/ticket/34095#comment:1>
* owner: nobody => gripfx
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/34095#comment:2>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/34095#comment:3>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/16180 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34095#comment:4>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/34095#comment:5>
Comment (by GitHub <noreply@…>):
In [changeset:"5a7f3213ae4a2dc5e962ae1fcdedc6e6ab68dfcd" 5a7f321]:
{{{
#!CommitTicketReference repository=""
revision="5a7f3213ae4a2dc5e962ae1fcdedc6e6ab68dfcd"
Refs #34095 -- Changed height of form controls to use rem units in admin.
Co-authored-by: ja <j...@ja.com>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34095#comment:6>
* needs_better_patch: 1 => 0
* has_patch: 1 => 0
Comment:
There are still
[https://github.com/django/django/pull/16180#issuecomment-1278514250 more
cases to fix], see Thibaud's comment:
> ''"Basically anything that contains text and has a height, max-height or
line-height set in pixels is suspect."''
>
> ''"Here is a regex that identifies what to review: (max-height|height
|line-height):.+px. Then for each of the definitions this identifies, we
need to find the corresponding part of the UI, and check whether it makes
sense for it to scale with the font size (if so – convert to `rem). Or
whether it better stay at the fixed size."''
--
Ticket URL: <https://code.djangoproject.com/ticket/34095#comment:7>
* owner: jer => SwastikTripathi
--
Ticket URL: <https://code.djangoproject.com/ticket/34095#comment:8>
* has_patch: 0 => 1
* stage: Accepted => Ready for checkin
Comment:
[https://github.com/django/django/pull/16318 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34095#comment:9>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"e20fd899be87cf70ed5c4372c7b2ee634da1453a" e20fd899]:
{{{
#!CommitTicketReference repository=""
revision="e20fd899be87cf70ed5c4372c7b2ee634da1453a"
Refs #34095 -- Changed more properties to use rem units in admin CSS.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34095#comment:10>
* status: assigned => closed
* resolution: => fixed
Comment:
IMO we can consider this ticket as generally fixed. Small related cleanups
are of course still welcome.
--
Ticket URL: <https://code.djangoproject.com/ticket/34095#comment:11>