Prod assets

This commit is contained in:
Ryan Scherler
2020-12-31 17:13:39 -08:00
parent a9eacab3ac
commit a1eaad8f48
4 changed files with 22 additions and 6 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+5
View File
@@ -6830,6 +6830,11 @@
"integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=",
"dev": true
},
"microlite": {
"version": "0.9.1",
"resolved": "https://registry.npmjs.org/microlite/-/microlite-0.9.1.tgz",
"integrity": "sha1-PaiJDAVHeOyoe/RalbQCXeKBCec="
},
"micromatch": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz",
+2 -1
View File
@@ -16,7 +16,8 @@
"dependencies": {
"@popperjs/core": "^2.6.0",
"alpinejs": "^2.8.0",
"focus-visible": "^5.2.0"
"focus-visible": "^5.2.0",
"microlite": "^0.9.1"
},
"devDependencies": {
"@tailwindcss/forms": "^0.2.1",
+14 -4
View File
@@ -37,7 +37,7 @@
@if ($field->value)
<div class="overflow-hidden">
<ol
class="relative flex flex-wrap -m-2"
class="flex flex-wrap -m-2"
@if ($field->sortMethod)
wire:sortable="{{ $field->sortMethod }}"
@endif
@@ -52,12 +52,22 @@
>
<div class="p-2 bg-white shadow-sm rounded border border-gray-300 flex items-center space-x-4">
@if (exif_imagetype(Filament::storage()->path($file)))
<a href="{{ Filament::storage()->url($file) }}" target="_blank" rel="noopener noreferrer" class="flex-shrink-0">
<x-filament-image :src="$file" alt="{{ $file }}" :manipulations="[ 'w' => 48, 'h' => 48, 'fit' => 'crop' ]" width="48px" height="48px" loading="lazy" class="w-12 h-12 rounded" />
<a
href="{{ Filament::storage()->url($file) }}"
target="_blank"
rel="noopener noreferrer"
class="flex-shrink-0"
>
<x-filament-image :src="$file" alt="{{ $file }}" :manipulations="[ 'w' => 48, 'h' => 48, 'fit' => 'crop' ]" class="w-12 h-12 rounded" />
</a>
@endif
<div class="flex-grow overflow-scroll flex flex-col leading-tight">
<a href="{{ Filament::storage()->url($file) }}" target="_blank" rel="noopener noreferrer" class="text-sm link">
<a
href="{{ Filament::storage()->url($file) }}"
target="_blank"
rel="noopener noreferrer"
class="text-sm link"
>
{{ $file }}
</a>
<dl class="font-mono text-xs text-gray-500">