Closed (won't fix)
Project:
Image
Version:
5.x-2.x-dev
Component:
image_gallery
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2007 at 17:53 UTC
Updated:
12 Jul 2009 at 18:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
Hetta commentedWhy not change your thumbnail size to 140 x 140? Then your thumbnails will be 140 pixels, longest side.
Or change the "+ 75" line to something more to your liking; that's less than optimal, though, as you'll have to remember to change it every time you upgrade the image module.
Comment #2
drewish commentedmarked http://drupal.org/node/196659 as a duplicate
Comment #3
Hetta commentedNo activity for two months - I'm marking this fixed.
Comment #4
joachim commentedActually -- I wonder if anything can be done by setting height at exactly the pixel height of the image, and then margin-bottom to an em value (which will still be guesswork), and letting the element overflow into it.
Would need a LOT of testing on all browsers though, and I don't have access to all flavours of IE.
Comment #5
Hetta commentedComment #6
joachim commentedThis issue is more about http://drupal.org/node/134423#comment-715391 now...
Try this patch.
It's still not ideal, but as there's no way of knowing how long people's image titles are, for example, the height has to be an approximation.
At least by putting the extra height in the stylesheet rather than the element, users can tweak it for their own site in their theme's stylesheet.
Will need testing on different browsers, especially all the different IEs.
It's not made a *huge* difference to the height of the Random Image block, which was Hetta's point. If you want better, we could make another view type plugin 'Image list' made specifically for blocks.
Comment #7
Hetta commentedOK, changing the .css to
gives block images where height = max thumbnail size, not actual image size.
Screenshot (firefox 2.0, linux) attached. (Konqueror off KDE 3.5.8, linux, looks the same.)
It's much better. I can live with this, although it's not yet optimal.
Comment #8
joachim commentedOops. The dotted blue wasn't meant to be in there -- that was just for me to see the edges.
The reason I put padding-bottom:1em; in the block li is for the image name -- in your screenshot there wouldn't be enough room for that.
(BTW, I notice your images have bullets -- I thought we'd fixed that in another issue a while back. Reopen if you're using a standard theme.)
Comment #9
Hetta commentedThis:
takes care of the bullet.
I've amended your patch to that effect (and taken out the blue dotted line).
Comment #10
sunThere are several advanced CSS techniques that claim to solve this somehow - however, to my knowledge, all of them either need special hacks for certain browsers or simply don't support certain browsers.
Ultimately, the most safe approach is to use a good old table. Requires no hacks and very little CSS.
Since we want to move away from custom image galleries anyway, and Views Bonus Pack already comes with a grid style, I'm marking this won't fix.
Comment #11
joachim commentedTables ugh :(
FWIW I had a long chat with (arg forgot his name... was maybe going to work on the 3.x branch of image module) on IRC some months ago and we found the nicest way to do a gallery with CSS is the way http://www.deviantart.com/ does it, because the left over images can be centred rather than ragged left.