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.
#1276908: Administrative tables are too wide for smaller screens added a way to add responsive tables to drupal.
Sadly the bartik theme didn't got updated due to changes in the issue.
/**
* Responsive tables.
*/
@media screen and (max-width:28.125em) { /* 450px */
th.helpful,
td.helpful,
th.priority-medium,
td.priority-medium {
display: none;
}
}
@media screen and (max-width:45em) { /* 720px */
th.helpful,
td.helpful {
display: none;
}
}
compared to the css of seven/stark:
@media screen and (max-width:28.125em) { /* 450px */
th.priority-low,
td.priority-low,
th.priority-medium,
td.priority-medium {
display: none;
}
}
@media screen and (max-width:45em) { /* 720px */
th.priority-low,
td.priority-low {
display: none;
}
}
See attached screenshots for before and after state, and the actual html used by this table.
Comment | File | Size | Author |
---|---|---|---|
#1 | drupal-1800304-1.patch | 621 bytes | dawehner |
html.png | 19.06 KB | dawehner | |
before.png | 4.27 KB | dawehner | |
after.png | 5.19 KB | dawehner |
Comments
Comment #1
dawehnerHere is the actual patch
Comment #2
moshe weitzman CreditAttribution: moshe weitzman commentedWoops. Thanks.
Comment #3
webchickNice catch, thanks!
Committed and pushed to 8.x.