[Django] #33457: Expanding local vars in technical 500 causes horizontal scrolling

9 views
Skip to first unread message

Django

unread,
Jan 21, 2022, 3:29:40 PM1/21/22
to django-...@googlegroups.com
#33457: Expanding local vars in technical 500 causes horizontal scrolling
-------------------------------------+-------------------------------------
Reporter: Keryn | Owner: (none)
Knight |
Type: Bug | Status: new
Component: Error | Version: dev
reporting | Keywords: technical debug 500
Severity: Normal | UI
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Whilst working on a little alpha project to [https://github.com/kezabelle
/django-technicalerrors provide alternate error pages], and comparing
output, I noticed that expanding the `Local vars` seems to ''always''
cause a horizontal scrollbar, at least at 1425x???? in Chrome.

As far as I can tell from checking out git tags, this seems to occur at
least back to 2.2 (???? that can't be right, but OK!), and before that I
start getting issues with code which has moved that my project doesn't
support, so ... it may go back further.

A cursory play around with my devtools suggests that the following fixes
it:
{{{
table.vars {
margin: 5px 10px 2px 40px;
width: auto;
}
}}}
Specifically:
- Restore the `width` to not be `100%` (which is currently applied to all
`table`) and use `auto` or `inherit` or `initial` instead.
- Add `10px` right margin so the table lines up vertically with it's
related context lines.

Attaching a gif which shows a slice of the issue.

--
Ticket URL: <https://code.djangoproject.com/ticket/33457>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 21, 2022, 3:30:55 PM1/21/22
to django-...@googlegroups.com
#33457: Expanding local vars in technical 500 causes horizontal scrolling
-------------------------------------+-------------------------------------
Reporter: Keryn Knight | Owner: (none)
Type: Bug | Status: new
Component: Error reporting | Version: dev
Severity: Normal | Resolution:
Keywords: technical debug 500 | Triage Stage:
UI | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Keryn Knight):

* Attachment "te500-scroll.gif" added.

animated gif showing the table's end being off-screen, forcing an
horizontal scrollbar to appear when Local vars are toggled

Django

unread,
Jan 21, 2022, 10:30:24 PM1/21/22
to django-...@googlegroups.com
#33457: Expanding local vars in technical 500 causes horizontal scrolling
-------------------------------------+-------------------------------------
Reporter: Keryn Knight | Owner:
| Hrushikesh Vaidya
Type: Bug | Status: assigned

Component: Error reporting | Version: dev
Severity: Normal | Resolution:
Keywords: technical debug 500 | Triage Stage:
UI | Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Hrushikesh Vaidya):

* owner: (none) => Hrushikesh Vaidya
* status: new => assigned
* has_patch: 0 => 1
* ui_ux: 0 => 1


Comment:

[https://github.com/django/django/pull/15348 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/33457#comment:1>

Django

unread,
Jan 22, 2022, 6:46:37 AM1/22/22
to django-...@googlegroups.com
#33457: Expanding local vars in technical 500 causes horizontal scrolling
-------------------------------------+-------------------------------------
Reporter: Keryn Knight | Owner:
| Hrushikesh Vaidya
Type: Bug | Status: assigned
Component: Error reporting | Version: dev
Severity: Normal | Resolution:
Keywords: technical debug 500 | Triage Stage: Accepted
UI |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* stage: Unreviewed => Accepted


Comment:

Thanks for the report.

--
Ticket URL: <https://code.djangoproject.com/ticket/33457#comment:2>

Django

unread,
Jan 24, 2022, 1:37:06 AM1/24/22
to django-...@googlegroups.com
#33457: Expanding local vars in technical 500 causes horizontal scrolling
-------------------------------------+-------------------------------------
Reporter: Keryn Knight | Owner:
| Hrushikesh Vaidya
Type: Bug | Status: assigned
Component: Error reporting | Version: dev
Severity: Normal | Resolution:
Keywords: technical debug 500 | Triage Stage: Ready for
UI | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/33457#comment:3>

Django

unread,
Jan 24, 2022, 1:43:06 AM1/24/22
to django-...@googlegroups.com
#33457: Expanding local vars in technical 500 causes horizontal scrolling
-------------------------------------+-------------------------------------
Reporter: Keryn Knight | Owner:
| Hrushikesh Vaidya
Type: Bug | Status: closed

Component: Error reporting | Version: dev
Severity: Normal | Resolution: fixed

Keywords: technical debug 500 | Triage Stage: Ready for
UI | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by GitHub <noreply@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"89d137f3be1685dfc2ce0968835c73667bffb0ba" 89d137f3]:
{{{
#!CommitTicketReference repository=""
revision="89d137f3be1685dfc2ce0968835c73667bffb0ba"
Fixed #33457 -- Fixed "Local vars" scrolling in technical 500 debug page.

Thanks Keryn Knight for the report and the initial patch.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33457#comment:4>

Reply all
Reply to author
Forward
0 new messages