enhance performance of long texture name
This commit is contained in:
parent
3990382f2f
commit
eb3c2f01b3
|
|
@ -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']))
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user