From 5bd5bb8488b5b661d9d421d697ddcf28138cb5ff Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 18 Sep 2024 13:55:09 +1000 Subject: [PATCH] Enable CSS to show thumbnail at a fixed height. Fix showing created dates are the same --- public/css/custom.css | 4 ++++ resources/views/catalog/widgets/duplicates.blade.php | 4 ++-- resources/views/components/photo/thumbnail.blade.php | 2 +- resources/views/photo/widgets/thumbnail.blade.php | 4 ++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/public/css/custom.css b/public/css/custom.css index e69de29..57b8221 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -0,0 +1,4 @@ +.thumbnail { + width: auto !important; + height: 20em !important; +} \ No newline at end of file diff --git a/resources/views/catalog/widgets/duplicates.blade.php b/resources/views/catalog/widgets/duplicates.blade.php index c78a4ad..ab727da 100644 --- a/resources/views/catalog/widgets/duplicates.blade.php +++ b/resources/views/catalog/widgets/duplicates.blade.php @@ -17,7 +17,7 @@ - @include($o::config.'.widgets.thumbnail',['o'=>$o,'reference'=>$o->newInstance()]) + @include($o::config.'.widgets.thumbnail',['o'=>$o,'reference'=>$o->newInstance(),'css'=>'thumbnail']) @if (! ($d=$o->myduplicates()->get())->count()) @@ -32,7 +32,7 @@ @php($rendered->push($item)) - @include($item::config.'.widgets.thumbnail',['o'=>$item,'reference'=>$o]) + @include($item::config.'.widgets.thumbnail',['o'=>$item,'reference'=>$o,'css'=>'thumbnail']) @endforeach @endif diff --git a/resources/views/components/photo/thumbnail.blade.php b/resources/views/components/photo/thumbnail.blade.php index c46ba57..069e239 100644 --- a/resources/views/components/photo/thumbnail.blade.php +++ b/resources/views/components/photo/thumbnail.blade.php @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/resources/views/photo/widgets/thumbnail.blade.php b/resources/views/photo/widgets/thumbnail.blade.php index 3a98d35..fb42441 100644 --- a/resources/views/photo/widgets/thumbnail.blade.php +++ b/resources/views/photo/widgets/thumbnail.blade.php @@ -25,7 +25,7 @@
- +