Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#19972 closed Cleanup/optimization (fixed)

Changelist tables that are larger than the viewport slip under the filter sidebar

Reported by: loic84 Owned by: nobody
Component: contrib.admin Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description

When filtered, the changelist table can appear under the filter sidebar (z-index), therefore hiding some columns. Unless you can enlarge your window further there is currently no way to reveal the hidden content.

Adding the CSS property overflow-x: auto as done in the patch solve that and allow the user to scroll horizontally to reveal the hidden content. It also makes the page look less buggy as the content no longer breaks out of its container.

Tested both with LTR and RTL locales.

As a side note, if you would like to replicate this issue, do so with a large table rather than a small viewport since the admin CSS has a min-width that kicks in at some point.

Attachments (2)

changelist.css.patch (458 bytes ) - added by loic84 12 years ago.
printscreen.png (11.5 KB ) - added by lpiatek 10 years ago.
content-main tinkering result

Download all attachments as: .zip

Change History (7)

by loic84, 12 years ago

Attachment: changelist.css.patch added

comment:1 by loic84, 12 years ago

UI/UX: set

comment:2 by Ramiro Morales, 12 years ago

Already reported in #13735.

If you can review the other ticket, close one and merge best ideas form both I will commit the result. Thanks.

comment:3 by loic84, 12 years ago

Triage Stage: UnreviewedReady for checkin

Marked #13735 as a duplicate.

Both patches solve the issue in essentially the same way: setting the overflow CSS property to .change-list .results.

This patch is slightly more targeted by only affecting filtered changelists and the horizontal overflow.

Last edited 12 years ago by loic84 (previous) (diff)

comment:4 by Florian Apolloner <florian@…>, 12 years ago

Resolution: fixed
Status: newclosed

In a45d06ca3dc994e48cfce815ab913cc188c4b30f:

Fixed #19972 -- Fixed overflow issue in admin changelist pages.

Thanks to loic84 for the report and patch.

comment:5 by lpiatek, 10 years ago

loic84 do You have any other idea to overcome issue that is scrolling down the page to get to the hidden content by the viewport?

I have tried:

  width: auto;
  min-width: 100%;

Last solution gives scollbar on window when content is bigger than viewport (I don't have to scroll down the page to scroll but ugly top bar stays at 100% which is narrower than content). This is the best solutions I could think of.

I've put screenshot of the result of tinkering with #content-main: https://code.djangoproject.com/attachment/ticket/19972/printscreen.png

Last edited 10 years ago by lpiatek (previous) (diff)

by lpiatek, 10 years ago

Attachment: printscreen.png added

content-main tinkering result

Note: See TracTickets for help on using tickets.
Back to Top