Commit b59670025f7633c38fdea98237dac794ce542467

Authored by Braulio Bhavamitra
2 parents 1891de67 dea9c592

Merge branch 'wrap-long-item-title' into 'master'

Wrap long titles of articles and uploads

Avoids that long titles bleed through the borders in article/files listings.

See merge request !790
public/stylesheets/cms.scss
@@ -166,6 +166,12 @@ table.cms-articles .icon:hover { @@ -166,6 +166,12 @@ table.cms-articles .icon:hover {
166 white-space: nowrap; 166 white-space: nowrap;
167 } 167 }
168 168
  169 +.controller-cms td.article-name {
  170 + text-overflow: ellipsis;
  171 + white-space: nowrap;
  172 + overflow: hidden;
  173 +}
  174 +
169 .controller-cms .article-controls { 175 .controller-cms .article-controls {
170 white-space: nowrap; 176 white-space: nowrap;
171 } 177 }
public/stylesheets/content/blog.scss
@@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
7 } 7 }
8 #content .title { 8 #content .title {
9 margin-bottom: 2px; 9 margin-bottom: 2px;
  10 + word-wrap: break-word;
10 } 11 }
11 .blog-post .post-pic { 12 .blog-post .post-pic {
12 background-position: 50% 40%; 13 background-position: 50% 40%;
public/stylesheets/content/folder.scss
@@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
2 .article-body ul.folder-content { 2 .article-body ul.folder-content {
3 list-style-type: none; 3 list-style-type: none;
4 padding: 0; 4 padding: 0;
  5 + word-wrap: break-word;
5 } 6 }
6 7
7 .folder-content .folder-item img { 8 .folder-content .folder-item img {
public/stylesheets/content/image-gallery.scss
@@ -13,6 +13,7 @@ @@ -13,6 +13,7 @@
13 list-style: none; 13 list-style: none;
14 overflow: hidden; 14 overflow: hidden;
15 background-repeat: no-repeat; 15 background-repeat: no-repeat;
  16 + word-wrap: break-word;
16 } 17 }
17 .image-gallery-item span { 18 .image-gallery-item span {
18 text-align: center; 19 text-align: center;