Bug #13385
closedCapsule descriptions are trunctated to 32 chars irrespective of cell width
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1255182
Description of problem:
Capsule descriptions in the web UI do not resize to the width of the cell (So if your description for the capusule goes over 32 chars then this is only visible on the rollover).
Version-Release number of selected component (if applicable):
6.1.1 GA
How reproducible:
N/A - web layout
Steps to Reproduce:
This is generated by /usr/share/foreman/app/views/smart_proxies/index.html.erb at line 17:
<td><%= link_to_if_authorized trunc(proxy.name), hash_for_edit_smart_proxy_path(:id => proxy).merge(:auth_object => proxy, :authorizer => authorizer) %></td>
And the trunc method (from : /usr/share/foreman/app/helpers/layout_helper.rb) says this:
def trunc(text, length = 32)
text = text.to_s
options = text.size > length ? { :'data-original-title' => text, :rel => 'twipsy' } : {}
content_tag(:span, truncate(text, :length => length), options).html_safe
end
Actual results:
Description text is trucated to 32 chars
Expected results:
Text should match the column width
Additional info:
Updated by Dominic Cleal over 9 years ago
- Status changed from New to Rejected
This appears to have been changed already.