Opened 14 years ago
Closed 14 years ago
#21475 closed defect (bug) (fixed)
Twenty Twelve: Better Gallery Columns Support
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.5 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Bundled Theme | Keywords: | has-patch |
| Focuses: | Cc: |
Description
By default WordPress allows users to set anywhere from 1 to 9 columns for their galleries. At present the margins between those images isn't consistent (see attachment). The following shortcode test was used in order to create the screenshot:
[gallery columns="1" size="large"] [gallery columns="2" size="large"] [gallery columns="3" size="large"] [gallery columns="4" size="large"] [gallery columns="5" size="large"] [gallery columns="6" size="large"] [gallery columns="7" size="large"] [gallery columns="8" size="large"] [gallery columns="9" size="large"]
Let's create better displays for those columns.
Attachments (3)
Change History (9)
#3
@
14 years ago
- Cc pdclark added
- Keywords has-patch added
- Owner changed from pdclark to philiparthurmoore
I added a patch that sets the width by percentage. While in there, I noticed that the image padding set in pixels caused the white space between the image and border to be disproportionately large for small images (many columns). I've attached screenshots, padding-in-pixels and padding-in-percent to show the difference. Patch sets both width and padding as percent.
Note: See
TracTickets for help on using
tickets.
Link to screenshot of issue.