Skip to content

Commit

Permalink
Enhanched view attachments layout. Updated screenshot.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcogermani87 committed May 13, 2024
1 parent 1bdd986 commit 657f9f6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions resources/views/attachments.blade.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<div>
<?php $attachments = $getRecord()->attachments; ?>
@if(!empty($attachments))
<ul class="max-w-md divide-y divide-gray-200 dark:divide-gray-700">
@foreach($attachments as $attachment)
<li class="pb-4 pt-4 sm:pb-4">
<div class="flex items-center space-x-4 rtl:space-x-reverse">
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-gray-900 truncate dark:text-white">
<strong>{{ $attachment['name'] }}</strong>
</p>
</div>
<div class="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">
{{ ($this->downloadAction)(['path' => $attachment['path'], 'name' => $attachment['name'] , 'type' => $attachment['contentType']]) }}
</div>
<?php $attachments = $getRecord()->attachments; ?>

@if(!empty($attachments))
<div class="flex flex-wrap gap-8">
@foreach($attachments as $attachment)
<div class="basis-1/4 me-3">
<div class="flex items-center space-x-6 rtl:space-x-reverse">
<div class="flex-initial min-w-0 pe-4">
<p class="text-sm font-medium text-gray-900 truncate dark:text-white">
<strong>{{ $attachment['name'] }}</strong>
</p>
</div>
</li>
@endforeach
</ul>
@endif
</div>
<div class="inline-flex items-center text-base font-semibold text-gray-900 dark:text-white">
{{ ($this->downloadAction)(['path' => $attachment['path'], 'name' => $attachment['name'] , 'type' => $attachment['contentType']]) }}
</div>
</div>
</div>
@endforeach
</div>
@endif

Binary file modified screenshots/view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 657f9f6

Please sign in to comment.