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.
View attached screenshots to see the difference.
Although views is a contrib module I think Zen should be 'nice' and define for it as well.
Comment | File | Size | Author |
---|---|---|---|
#1 | 342004_1_table_width.patch | 396 bytes | amitaibu |
zen.png | 16.87 KB | amitaibu | |
garland.png | 17.05 KB | amitaibu |
Comments
Comment #1
amitaibusorry, views has nothing to do with it. Patch attached.
Comment #2
kmontyThis is something I set on basically all of my websites. The only drawback could be potentially confusing someone who just wants a narrow table centered on a page in the middle of an article, or aligned to the right/left/etc of a page.
However, Zen's point is to be light started theme and not really presume how you want to style your content. This might not be appropriate.
Comment #3
amitaibuEven if this is the case it's worth having a placeholder, i.e.
Comment #4
yoroy CreditAttribution: yoroy commentedI like this because autosized tables look rather cramped by default. Going for 100% width by default would actually make most tables a bit more readable I think. The point #2 makes against this is a good one but I wouldn't mind Zen providing a "better" default here.
+1, can't really rtbc this because I didn't apply the actual patch.
Comment #5
SeanBannister CreditAttribution: SeanBannister commented+1 I always make this change as well, while Zen is designed to be light weight there would be few people who wouldn't make this change.
Comment #6
JohnAlbinI went with the placeholder
/* width: 100%; */ /* Prevent cramped-looking tables */
Thanks, Amitai!