解决加入班级通知中已省略号结尾的鼠标显示全部内容,定义公共的用户名长度隐藏样式

This commit is contained in:
huang 2017-01-06 16:28:53 +08:00
parent 0be2dbe10b
commit 7fd1b84b34
2 changed files with 6 additions and 3 deletions

View File

@ -727,9 +727,9 @@
</div>
<li class="messageOperateContents fl">
<% if ma.status == 1 %>
<%= User.find(ma.course_message_id).show_name%>已通过
<span class="user_hiddent fl" title="<%=User.find(ma.course_message_id).show_name %>"><%= User.find(ma.course_message_id).show_name %></span><span>已通过</span>
<% else %>
<%= User.find(ma.course_message_id).show_name%>已拒绝
<span class="user_hiddent fl" title="<%=User.find(ma.course_message_id).show_name %>"><%= User.find(ma.course_message_id).show_name %></span><span>已拒绝</span>
<% end %>
</li>
<li class="homepageNewsTime fr"><%= time_tag(ma.created_at).html_safe %> </li>

View File

@ -1551,4 +1551,7 @@ a.syllabusbox_a_blue{
.pages_new_404_txt{ font-size: 16px; color: #888; text-align: center;}
.feedbackText{box-shadow:none; width:550px; height:80px; border-color: #DFDFDF; background:#fff; color:#999; padding:3px; font-size:12px;overflow:auto; background-attachment:fixed;border-style:solid;}
._notice_box{border:solid 1px #f6d0b1; background:#fff9e9; padding:4px; color:#ee4a20;}
._notice_box{border:solid 1px #f6d0b1; background:#fff9e9; padding:4px; color:#ee4a20;}
/*针对名字过长的用户定义公共样式*/
.user_hiddent{width: 55px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;display: inline-block;}