From 5e3c12220c43493dd2115445a4e7d22eb8f5ec88 Mon Sep 17 00:00:00 2001 From: sonya Date: Mon, 29 Mar 2021 02:54:02 +0700 Subject: [PATCH] Try #1 --- resources/views/table.blade.php | 515 +++++++++++++++++--------------- src/MediaController.php | 9 +- src/MediaManager.php | 22 +- 3 files changed, 290 insertions(+), 256 deletions(-) diff --git a/resources/views/table.blade.php b/resources/views/table.blade.php index d42ce5e..13d521d 100644 --- a/resources/views/table.blade.php +++ b/resources/views/table.blade.php @@ -31,239 +31,239 @@ margin: 7px 0px 0px 10px; } - .file-icon.has-img>img { - max-width: 100%; - height: auto; - max-height: 30px; - } + .file-icon.has-img > img { + max-width: 100%; + height: auto; + max-height: 30px; + } @@ -286,9 +286,10 @@ function closeModal() { @@ -299,13 +300,20 @@ function closeModal() {
- - + @if($currentPage !== 1) + + @endif + @if($currentPage !== $countPage) + + @endif
{{--
--}}
- +
@@ -324,56 +332,62 @@ function closeModal() {
  • @foreach($nav as $item) -
  • {{ $item['name'] }}
  • +
  • {{ $item['name'] }}
  • @endforeach @if (!empty($list)) - - - - + + + + + + @endforeach + +
    + + + + - - - - - - @foreach($list as $item) - - + + + + + @foreach($list as $item) + + - - - - - - - @endforeach - -
    - {{ trans('admin.name') }}{{ trans('admin.time') }}{{ trans('admin.size') }}
    + + {{ trans('admin.name') }}{{ trans('admin.time') }}{{ trans('admin.size') }}
    - - {!! $item['preview'] !!} - - - {{ $item['icon'] }} {{ basename($item['name']) }} - - -
    - - - @unless($item['isDir']) - - @endunless - -
    - -
    {{ $item['time'] }} {{ $item['size'] }} 
    + +
    + {!! $item['preview'] !!} + + + {{ $item['icon'] }} {{ basename($item['name']) }} + + +
    + + + @unless($item['isDir']) + + @endunless + +
    + +
    {{ $item['time'] }} {{ $item['size'] }} 
    @endif
    @@ -389,21 +403,22 @@ function closeModal() {