Skip to content

Instantly share code, notes, and snippets.

@lechup
Last active August 29, 2015 14:02
Show Gist options
  • Save lechup/bfd33373fa77fcb1e86d to your computer and use it in GitHub Desktop.
Save lechup/bfd33373fa77fcb1e86d to your computer and use it in GitHub Desktop.
too many columns in django admin for narrow resolution / overflow fix, just add the css in Your AdminModel Media css part...
#changelist-form > div.results, #changelist-form > div.results > #result_list
{
transform:rotateX(180deg);
-ms-transform:rotateX(180deg); /* IE 9 */
-webkit-transform:rotateX(180deg); /* Safari and Chrome */
}
#changelist-form > div.results {
overflow-x: auto;
}
class HelloModel(admin.ModelAdmin):
class Media:
css = {
'screen': ('css/admin_changelist_overflow_fix.css',),
}
@lechup
Copy link
Author

lechup commented Jul 6, 2014

Problems in Chrome <= 35.0.1916.153 (can't click on any link, don't know why). Some z-index issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment