diff --git a/app/assets/stylesheets/content/_table.lsg b/app/assets/stylesheets/content/_table.lsg index 4a4a988b5f..33e4e21be7 100644 --- a/app/assets/stylesheets/content/_table.lsg +++ b/app/assets/stylesheets/content/_table.lsg @@ -107,6 +107,89 @@ ``` +## Text overflow / ellipse styles + +Use `-no-ellipse` class to a TD element to disable the text-overflow applied usually. + +``` +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + Content wraps in new lines + +
+
+
+
+
+ + clipped + +
+
+
+
+
+ + Third + +
+
+
+
+
+ + Fourth + +
+
+
+
+
+ + Fifth + +
+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus porta lorem congue lacus euismod egestas. Mauris odio orci, semper sed molestie viverra, vestibulum et nisi. + Nullam a sem et metus congue placerat. Text will overflow once max-width is exceededMauris ut augue viverra, consequat eros eu, maximus quam.Maecenas elementum orci a varius suscipit.Nunc molestie neque sit amet eros semper dapibus.
+ +
+
+ +``` + + ## with footer ``` diff --git a/app/assets/stylesheets/content/_table.sass b/app/assets/stylesheets/content/_table.sass index 3540631d8f..be7e6b0370 100644 --- a/app/assets/stylesheets/content/_table.sass +++ b/app/assets/stylesheets/content/_table.sass @@ -137,8 +137,10 @@ table.generic-table tr:not(.-no-highlighting) border-bottom: 1px solid $table-row-border-color - td + td:not(.-no-ellipsis) @include text-shortener + + td max-width: 300px text-align: left line-height: 1.6 diff --git a/app/views/boards/index.html.erb b/app/views/boards/index.html.erb index 937cad297c..92fc2890b6 100644 --- a/app/views/boards/index.html.erb +++ b/app/views/boards/index.html.erb @@ -80,7 +80,7 @@ See docs/COPYRIGHT.rdoc for more details. <% for board in @boards %> - + <%= link_to h(board.name), { action: 'show', id: board }, class: "board" %>
<%=h board.description %>