Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On some administrative dashboards, especially when there is a large table, the main content comes over the right sidebar and may hide some important notices.
It should be great to add a overflow-x: auto;
on the main wrapper and use a jQuery plugin to allow horizontal scrolling using the mouse whell. For example : jQuery horizontal scrollbar.
Or simply use the HTML5 javascript mouseWheel behavior.
Comment | File | Size | Author |
---|---|---|---|
#2 | maps_admin-horizontal-scrollbar-2027471-2.patch | 2.6 KB | danielrico |
#1 | maps_admin-horizontal-scrollbar-2027471-1.patch | 0 bytes | danielrico |
Comments
Comment #1
danielrico CreditAttribution: danielrico commentedOverflow-x added to #main_content on all pages, except on the module page when module filter ( https://drupal.org/project/module_filter ) is active.
If module filter is used and a class .page-module-filter is added to the body, overflow-x will be applied to .module-filter-squeeze.
Comment #2
danielrico CreditAttribution: danielrico commentedActual patch attached.
Other modifications :
- Background color to distinguish modules from other elements on permission page
- Same color applied on same item types on block management page to keep a visual and functionnal consistence
- Removed background color on tbody>th as it is not useful (for now at least). Applied standard text color to avoid the white text on white background problem encountered before.
Comment #3
B-Prod CreditAttribution: B-Prod commentedThe patch is OK for the scrollbar, you could commit it then I will work on the JavaScript stuff.
Comment #4
danielrico CreditAttribution: danielrico commentedCommitted to the DEV version: f9239ef8b89b05ebb5535f21148ec407985d3c0b
Comment #5
B-Prod CreditAttribution: B-Prod commentedFinally I used the following plugin: https://github.com/brandonaaron/jquery-mousewheel
Ported to the DEV branch.