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
  • Loading branch information
caendesilva authored Jan 28, 2024
2 parents 9c0a941 + 6518638 commit b282cfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This serves two purposes:
- for now removed features.

### Fixed
- for any bug fixes.
- Fixed icons not being considered as images by dashboard viewer in https://github.com/hydephp/develop/pull/1512

### Security
- in case of vulnerabilities.
2 changes: 1 addition & 1 deletion packages/realtime-compiler/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 b282cfb

Please sign in to comment.