Skip to content

Commit

Permalink
Merge pull request #183 from plone/photoentrytitlefix
Browse files Browse the repository at this point in the history
Allow long photoAlbumEntryTitle entries to break to fit width.
  • Loading branch information
agitator authored Jun 20, 2019
2 parents 176b581 + 7ae924e commit 316dcf6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 14 deletions.
2 changes: 2 additions & 0 deletions news/183.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Allow long photoAlbumEntryTitle entries to break to fit width.
[agitator]
4 changes: 4 additions & 0 deletions plonetheme/barceloneta/theme/less/barceloneta-compiled.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

36 changes: 23 additions & 13 deletions plonetheme/barceloneta/theme/less/thumbs.plone.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,30 @@

.photoAlbumEntry {
display: inline-block;
margin: 5px;
margin: 5px;
vertical-align: middle;
a {
text-align:center;
vertical-align: middle; display:
table-cell;

a {
text-align: center;
vertical-align: middle;
display:
table-cell;
font-weight: @plone-font-weight-regular;
box-shadow: 0 1px 3px rgba(0,0,0,.05);
border: @plone-portlet-border;
box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
border: @plone-portlet-border;
border-radius: @plone-border-radius-base;
background: @plone-portlet-footer-bg;
width: 220px;
height: 240px;}
background: @plone-portlet-footer-bg;
width: 220px;
height: 240px;

.photoAlbumEntryTitle {
hyphens: auto;
word-break: break-word;
}
}

img {
max-width: 200px;
max-height: 200px; }
}
max-width: 200px;
max-height: 200px;
}
}

0 comments on commit 316dcf6

Please sign in to comment.