Commit 4d7fbcc4 authored by q4speed's avatar q4speed

修复文字过长bug

parent 3822d518
...@@ -432,4 +432,10 @@ div.dataTables_wrapper div.dataTables_filter { ...@@ -432,4 +432,10 @@ div.dataTables_wrapper div.dataTables_filter {
font-size: 12px !important; font-size: 12px !important;
} }
.ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
...@@ -125,9 +125,9 @@ ...@@ -125,9 +125,9 @@
{% for data in week_asset_hot_ten %} {% for data in week_asset_hot_ten %}
<div class="timeline-item"> <div class="timeline-item">
<div class="row"> <div class="row">
<div class="col-xs-5 date"> <div class="col-xs-5 date ellipsis">
<i class="fa fa-info-circle"></i> <i class="fa fa-info-circle"></i>
<strong>{{ data.asset }}</strong> <strong data-toggle="tooltip" title="{{ data.asset }}">{{ data.asset }}</strong>
<br/> <br/>
<small class="text-navy">{{ data.total }}次</small> <small class="text-navy">{{ data.total }}次</small>
</div> </div>
...@@ -213,9 +213,9 @@ ...@@ -213,9 +213,9 @@
{% for data in week_user_hot_ten %} {% for data in week_user_hot_ten %}
<div class="timeline-item"> <div class="timeline-item">
<div class="row"> <div class="row">
<div class="col-xs-5 date"> <div class="col-xs-5 date ellipsis">
<i class="fa fa-info-circle"></i> <i class="fa fa-info-circle"></i>
<strong>{{ data.user }}</strong> <strong data-toggle="tooltip" title="{{ data.user }}">{{ data.user }}</strong>
<br/> <br/>
<small class="text-navy">{{ data.total }}次</small> <small class="text-navy">{{ data.total }}次</small>
</div> </div>
...@@ -245,7 +245,8 @@ $(document).ready(function(){ ...@@ -245,7 +245,8 @@ $(document).ready(function(){
$('#show').click(function(){ $('#show').click(function(){
$('#show').css('display', 'none'); $('#show').css('display', 'none');
$('#more').css('display', 'block'); $('#more').css('display', 'block');
}) });
$("[data-toggle='tooltip']").tooltip();
}); });
require.config({ require.config({
paths: { paths: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment