diff --git a/app/styles/kinds/search.sass b/app/styles/kinds/search.sass index 69b8c11df..7644e613a 100644 --- a/app/styles/kinds/search.sass +++ b/app/styles/kinds/search.sass @@ -15,6 +15,12 @@ white-space: nowrap overflow: hidden text-overflow: ellipsis + .name-row + @extend .body-row + max-width: 300px + .small-name-row + @extend .body-row + max-width: 200px tr.mine background-color: #f8ecaa diff --git a/app/templates/common/table.jade b/app/templates/common/table.jade index bd768ce42..1188bf778 100755 --- a/app/templates/common/table.jade +++ b/app/templates/common/table.jade @@ -17,8 +17,9 @@ table.table for document in documents - var data = document.attributes; tr(class=document.getOwner() == me.id ? 'mine' : '') - td + td(title=data.name).name-row a(href="/editor/#{page}/#{data.slug || data._id}") | #{data.name} - td.body-row #{data.description} - td #{data.version.major}.#{data.version.minor} \ No newline at end of file + td(title=data.description).body-row + | #{data.description} + td #{data.version.major}.#{data.version.minor} diff --git a/app/templates/editor/thang/table.jade b/app/templates/editor/thang/table.jade index dc2445869..df00637f8 100755 --- a/app/templates/editor/thang/table.jade +++ b/app/templates/editor/thang/table.jade @@ -20,11 +20,14 @@ block tableBody for thang in documents tr td - img(title="Add " + thang.get('name'), src=thang.getPortraitURL(), alt="").portrait - td + - var name = thang.get('name'); + img(title="Add #{name}", src=thang.getPortraitURL(), alt="").portrait + td(title=name).small-name-row a(href="/editor/thang/#{thang.get('slug') || thang.id}") - | #{thang.get('name')} - td.body-row #{thang.get('description')} + | #{name} + - var description = thang.get('description'); + td(title=description).body-row + | #{description} - var version = thang.get('version') td #{version.major}.#{version.minor} - var tasks = thang.get('tasks');