Admin Pages - want horizontal scroll ability

523 views
Skip to first unread message

Peter Bailey

unread,
Mar 2, 2009, 3:06:21 PM3/2/09
to Django users
Hello, I am building a small app that just requires admin
functionality, Thought I was about done, but my customer tried it on a
huge 1024x768 monitor (have not seen one for a few years). Turns out
the if the admin pages would slide horizontally as well as vertically,
things would be fine. Works real nice on 1900x1200 and my Macbook
Pro :-)

I have looked around and not seen an easy solution for this (which if
course I am hoping for, since I thought I was wrapping up). Does
anyone know any easy way to do this or can you shout me any good
pointers. '

Help most appreciated, thanks,

Peter

Alex Gaynor

unread,
Mar 2, 2009, 3:09:43 PM3/2/09
to django...@googlegroups.com
From looking over the admin CSS it looks like it has the minimum width property on the container div set at 760px:
http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/media/css/base.css#L623

To lower that you'll probably need to write some of your own CSS to make it play nice. FWIW it may just be that you have some really long strings being displayed in certain places since I don't notice any issues on my 1280*800 laptop.

Alex

--
"I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire
"The people's good is the highest law."--Cicero

Peter Bailey

unread,
Mar 2, 2009, 3:23:22 PM3/2/09
to Django users
Yeah, I have big objects in tables. Sigh, was hoping to avoid writing
more css, but thought it might come down to that.

Thanks Alex.


On Mar 2, 3:09 pm, Alex Gaynor <alex.gay...@gmail.com> wrote:
> On Mon, Mar 2, 2009 at 3:06 PM, Peter Bailey <P.H.Bai...@gmail.com> wrote:
>
> > Hello, I am building a small app that just requires admin
> > functionality, Thought I was about done, but my customer tried it on a
> > huge 1024x768 monitor (have not seen one for a few years). Turns out
> > the if the admin pages would slide horizontally as well as vertically,
> > things would be fine. Works real nice on 1900x1200 and my Macbook
> > Pro :-)
>
> > I have looked around and not seen an easy solution for this (which if
> > course I am hoping for, since I thought I was wrapping up). Does
> > anyone know any easy way to do this or can you shout me any good
> > pointers. '
>
> > Help most appreciated, thanks,
>
> > Peter
>
> From looking over the admin CSS it looks like it has the minimum width
> property on the container div set at 760px:http://code.djangoproject.com/browser/django/trunk/django/contrib/adm...

Alex Gaynor

unread,
Mar 2, 2009, 3:25:10 PM3/2/09
to django...@googlegroups.com
You could try writing a method on the model admin to insert line breaks every X charecters so it's not an isue.
Reply all
Reply to author
Forward
0 new messages