Skip to content

Commit

Permalink
Merge pull request #1512 from hydephp/dashboard-media-library-improve…
Browse files Browse the repository at this point in the history
…ments

Fix icons not being considered as images by dashboard viewer hydephp/develop@b282cfb
  • Loading branch information
github-actions committed Jan 28, 2024
1 parent f609d89 commit ba63470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
@foreach(\Hyde\Support\Filesystem\MediaFile::all() as $mediaFile)
<div class="col-lg-4 p-2 d-flex flex-grow-1">
<figure class="card w-100 p-2 mb-0">
@if(in_array($mediaFile->getExtension(), ['svg', 'png', 'jpg', 'jpeg', 'gif']))
@if(in_array($mediaFile->getExtension(), ['svg', 'png', 'jpg', 'jpeg', 'gif', 'ico']))
<img loading="lazy" src="media/{{ $mediaFile->getIdentifier() }}" alt="{{ $mediaFile->getName() }}" class="object-fit-cover w-100 rounded-2" style="height: 240px;">
@else
<code style="height: 240px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, white 60%, transparent);" role="presentation">
Expand Down

0 comments on commit ba63470

Please sign in to comment.