Skip to content
Permalink
Browse files

fix:缩略图bug

  • Loading branch information
WangNingkai committed Jul 24, 2019
1 parent c997dbf commit a6d55092a82b348f151e25b7cae036ca48bbde15
Showing with 2 additions and 2 deletions.
  1. +1 −1 resources/views/default/one.blade.php
  2. +1 −1 resources/views/mdui/one.blade.php
@@ -261,7 +261,7 @@ class="pull-right">{{ \Illuminate\Support\Arr::has($item,'folder')? '-' : \App\U
<a href="{{ route('view',\App\Utils\Tool::encodeUrl($originPath ? $originPath.'/'.$item['name'] : $item['name'])) }}"
data-fancybox="image-list" data-caption="{{ $item['name'] }}"
data-toggle="popover" data-placement="bottom"
data-content="<img src='{{ $item['thumbnails'][0] ?? $item['thumbnails'][0]['medium']['url'] }}' alt='{{ $item['name'] }}' class='img-fluid'>"
data-content="<img src='{{ \Illuminate\Support\Arr::get($item,'thumbnails.0.small.url','') }}' alt='{{ $item['name'] }}' class='img-fluid'>"
class="view"><i
class="fa fa-eye"></i></a>&nbsp;&nbsp;
@endif
@@ -180,7 +180,7 @@ class="mdui-m-t-3 thumb-view mdui-row-xs-3 mdui-row-sm-4 mdui-row-md-5 mdui-row-
<div class="col-icon">
@if(in_array($item['ext'],explode(' ',setting('image')),false))
<img class="lazy"
data-original="{{ \Illuminate\Support\Arr::get($item,'thumbnails.0.small.url') }}"
data-original="{{ \Illuminate\Support\Arr::get($item,'thumbnails.0.small.url','') }}"
src="{{ asset('img/loading.gif') }}" alt="">
@else
<img

0 comments on commit a6d5509

Please sign in to comment.
You can’t perform that action at this time.