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.
When I installed my gallery (using media 7.x-1.0-beta3) I expected a nice grid of thumbnails. Instead each thumbnail image was stretching to the full width of the content area. (This appears to be the same issue as #25 in http://drupal.org/node/1030942 but is a separate issue from that thread.)
After a little poking around I found that it was no more than a simple CSS error. I haven't tested this patch extensively but it's working for me. I hope this saves some headaches for others!
Comment | File | Size | Author |
---|---|---|---|
#12 | with_TT.jpg | 102.16 KB | totap |
#12 | without_TT.jpg | 70.48 KB | totap |
media_gallery-thumbnail-width-css.patch | 309 bytes | Fenwick |
Comments
Comment #1
NPC CreditAttribution: NPC commentedHi, looking at your patch I don't think you have the same issue - the classes .mg-col and .field-items are used on the specific gallery page - and for me it works well (no stretching). The problem I have is stretching in the View that outputs nodes of gallery type.
Also, you propose this:
Yet .field-items (check the plural), which you suggest delete from the css, is still needed - it is used to make sure the thumbs on the gallery display page are tiled across the whole content area width. I can't check this, since I don't have the same problem that you do, but the issue may be caused by something else.
Comment #2
Fenwick CreditAttribution: Fenwick commentedMy problem was that the thumbnails wouldn't tile without the plurality change (the gallery view code output by the module was singular, not plural.) I'm not certain what's up, in that case. It's working for me now, at any rate.
Comment #3
Zach Harkey CreditAttribution: Zach Harkey commentedI was having this same problem. Try switching to the default theme and see if the thumbnails look right. If they look ok, you probably need to make some changes to your custom theme.
Comment #4
kenianbei CreditAttribution: kenianbei commentedI was able to easily solve this problem in adaptive theme by deleting the field.tpl.php file in the templates directory. The template file is missing some classes that bartik includes I think.
Another solution would be to just copy the system field.tpl.pho file to your theme directory and clear the cache.
Perhaps it has to do with being HTML5 compatible?
Comment #5
elgandoz CreditAttribution: elgandoz commentedthis happens to me with Media-Gallery 7.x-1.0-beta4 when enabling "Taxonomy translation" 7.x-1.0-beta4 (included in "Internationalization - l18n" module. It's not a css issue, the output is nested in a bad way, each item (a gallery collection) is child of the previous. Single galleries nodes are showed properly btw.
Comment #6
avizzino CreditAttribution: avizzino commentedAgree: same behavior.
And is reversible: disabling taxonomy translation module collections show properly again.
Comment #7
anavarreSubscribe
Comment #8
tiagopb CreditAttribution: tiagopb commented+1
Comment #9
joebest CreditAttribution: joebest commentedI'm having the same problem with taxonomy translation as well. Any help?
Comment #10
MasterEmit CreditAttribution: MasterEmit commentedI got it solved with Adaptive Theme the following way:
copied /modules/field/theme/field.tpl.php to /sites/all/themes/adaptivetheme/adaptivetheme/templates/field.tpl.php
removed function "adaptivetheme_field" from /sites/all/themes/adaptivetheme/adaptivetheme/inc/template.theme.inc
Not sure, if there could be any sideeffects now. I will test it. The possibility to drag and drop the order of the gallery-pics is still missing somehow.
Comment #11
MasterEmit CreditAttribution: MasterEmit commentedIn addition for users with Adaptive Theme:
http://drupal.org/node/1224172
http://drupal.org/node/1224198
Comment #12
totap CreditAttribution: totap commentedI have the same problem but with 7.x-1.0-beta6.
When I turn on "Taxonomy translate" - part of Internalization module, the thumbnails of list of galleries are stretched for full size of content and description about number of pictures or video is gone.
Turning off only this one part of Internalization module - Taxonomy translate is not solution in my case :/
Attachements:
with_TT.jpg - galleries list when Taxonomy translate is turn ON
without_TT.jpg - taxonomy translate turn OFF
Comment #13
Wappie08 CreditAttribution: Wappie08 commentedThanks totap, I was not aware that i18n Taxonomy translate conflicts with the Media module, I have the exact same problem!
Altered the title a bit to make this issue more clear, I've got no time to look into the matter right now..
Greetings Wappie
Comment #14
dwalker51 CreditAttribution: dwalker51 commentedI have the same problem and fixed it by disabling the i18n_taxonomy module.
These are the media modules installed
Media 7.x-1.0
Media Gallery 7.x-1.x-dev
Comment #15
lsolesen CreditAttribution: lsolesen commentedClosing this as a duplicate of #1231170: Taxonomy translation (i18n) breaks display of gallery-collections page + missing some code