enhance performance of long texture name

This commit is contained in:
printempw 2016-07-24 15:32:04 +08:00
parent 3990382f2f
commit eb3c2f01b3
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@
<img src="./preview/{{ $texture['tid'] }}.png">
</div>
<div class="item-footer">
<span>{{ $texture['name'] }} <small>({{ $texture['type'] }})</small></span>
<span title="{{ $texture['name'] }}">{{ strlen($texture['name']) > 12 ? substr($texture['name'], 0, 12).'...' : $texture['name']}} <small>({{ $texture['type'] }})</small></span>
@if (isset($_SESSION['email']))
@if ($user->closet->has($texture['tid']))

View File

@ -41,7 +41,7 @@
<img src="../preview/{{ $item->tid }}.png">
</div>
<div class="item-footer">
<span>{{ $item->name }} <small>({{ $item->type }})</small></span>
<span title="{{ $item->name }}">{{ strlen($item->name) > 12 ? substr($item->name, 0, 12).'...' : $item->name }} <small>({{ $item['type'] }})</small></span>
<a href="../skinlib/show?tid={{ $item->tid }}" title="在皮肤库中查看" class="more" data-toggle="tooltip" data-placement="bottom"><i class="fa fa-share"></i></a>
<ul class="dropdown-menu" aria-labelledby="share-button">