Last active
August 29, 2015 14:02
-
-
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...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HelloModel(admin.ModelAdmin): | |
class Media: | |
css = { | |
'screen': ('css/admin_changelist_overflow_fix.css',), | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problems in Chrome <= 35.0.1916.153 (can't click on any link, don't know why). Some z-index issue?