主页中间导航过长

This commit is contained in:
cxt 2016-10-20 17:17:19 +08:00
parent 7cc96b1569
commit 5bfb99083c
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
</span>
<% if @user.base_homepage %>
<span class="fl">
<%=link_to @user.base_homepage.title, homepage_user_path(@user.login), :class => 'sy_cgrey' %>
<%=link_to @user.base_homepage.title, homepage_user_path(@user.login), :class => 'sy_cgrey fl', :style => 'white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; max-width: 350px;' %>
&nbsp;&gt;&nbsp;
</span>
<% else %>
@ -30,7 +30,7 @@
&nbsp;&gt;&nbsp;
</span>
<% end %>
<%=link_to @article.title, user_homepage_show_path(:user_id=> @article.user_id,:id=> @article), :class => 'sy_cgrey', :style => 'white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; max-width: 650px;' %>
<%=link_to @article.title, user_homepage_show_path(:user_id=> @article.user_id,:id=> @article), :class => 'sy_cgrey', :style => 'white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; max-width: 350px;' %>
</p>
<% end %>
<% if @article.nil? %>