Skip to content

Commit

Permalink
fix css
Browse files Browse the repository at this point in the history
  • Loading branch information
webplusmultimedia committed Apr 8, 2024
1 parent 2443204 commit 94c19f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion resources/dist/gallery-json-media.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions resources/views/json-media/media.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="flex max-w-max">
<figure class="" style="width: {{ $media->width }}px">
<img class="object-cover w-full aspect-video" loading="lazy"
<div class="flex">
<figure class="w-full" >
<img class="object-cover w-full" loading="lazy"
src="{{ $media->getCropUrl(width: $media->width,height: $media->height) }}"
alt="{{ $media->getCustomProperty('alt') }}"
width="{{ $media->width }}"
Expand Down
4 changes: 2 additions & 2 deletions resources/views/table/gallery-column.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@php
use GalleryJsonMedia\JsonMedia\Contracts\HasMedia;
/** @var HasMedia $record */
$record = $getRecord();
/** @var HasMedia $record */
$record = $getRecord();
@endphp
<div class="flex gap-x-1 items-center max-w-max">
@if(($record))
Expand Down

0 comments on commit 94c19f9

Please sign in to comment.