Defect #42126 » 0001-Fix-the-member-table-layout-breaks-due-to-.icon-class-on-td-elements.patch
app/assets/stylesheets/application.css | ||
---|---|---|
437 | 437 |
tr.version:not(.shared) td.name { padding-left: 20px; } |
438 | 438 |
tr.version td.date, tr.version td.status, tr.version td.sharing { text-align: center; white-space:nowrap; } |
439 | 439 | |
440 |
tr.member td.icon-user, #principals_for_new_member .icon-user {background:transparent;}
|
|
440 |
tr.member .icon-user, #principals_for_new_member .icon-user {background:transparent;} |
|
441 | 441 |
#principals_for_new_member svg, #principals_for_new_member img {margin-right: 4px;} |
442 | 442 | |
443 | 443 |
tr.user td {width:13%;white-space: nowrap;} |
app/views/projects/settings/_members.html.erb | ||
---|---|---|
19 | 19 |
<% members.each do |member| %> |
20 | 20 |
<% next if member.new_record? %> |
21 | 21 |
<tr id="member-<%= member.id %>" class="member"> |
22 |
<td class="name icon icon-<%= member.principal.class.name.downcase %>"> |
|
23 |
<%= principal_icon(member.principal) %> |
|
24 |
<%= link_to_user member.principal %> |
|
22 |
<td class="name"> |
|
23 |
<span class="icon"> |
|
24 |
<%= principal_icon(member.principal) %> |
|
25 |
<%= link_to_user member.principal %> |
|
26 |
</span> |
|
25 | 27 |
</td> |
26 | 28 |
<td class="roles"> |
27 | 29 |
<span id="member-<%= member.id %>-roles"><%= member.roles.sort.collect(&:to_s).join(', ') %></span> |