diff --git a/app/Jobs/ImportHubData.php b/app/Jobs/ImportHubData.php index 74ac2b1..bac52eb 100644 --- a/app/Jobs/ImportHubData.php +++ b/app/Jobs/ImportHubData.php @@ -633,7 +633,7 @@ class ImportHubData implements ShouldBeUnique, ShouldQueue 'users' => $modAuthors, 'name' => $modContent?->subject ?? '', 'slug' => Str::slug($modContent?->subject ?? ''), - 'teaser' => Str::limit($modContent?->teaser ?? ''), + 'teaser' => Str::limit($modContent?->teaser ?? '', 255), 'description' => $this->cleanHubContent($modContent?->message ?? ''), 'thumbnail' => $this->fetchModThumbnail($curl, $mod->fileID, $mod->iconHash, $mod->iconExtension), 'license_id' => License::whereHubId($mod->licenseID)->value('id'), diff --git a/resources/views/components/mod-list.blade.php b/resources/views/components/mod-list.blade.php index 1b628ab..419642a 100644 --- a/resources/views/components/mod-list.blade.php +++ b/resources/views/components/mod-list.blade.php @@ -14,7 +14,7 @@ @endif
-
+

{{ $mod->name }}

@@ -24,7 +24,7 @@

By {{ $mod->users->pluck('name')->implode(', ') }}

-

{{ $mod->teaser }}

+

{{ Str::limit($mod->teaser, 100) }}

diff --git a/resources/views/mod/show.blade.php b/resources/views/mod/show.blade.php index dc39d60..e7e8ae2 100644 --- a/resources/views/mod/show.blade.php +++ b/resources/views/mod/show.blade.php @@ -43,16 +43,21 @@

+ + {{-- Mod teaser --}} + @if ($mod->teaser) +

{{ $mod->teaser }}

+ @endif + {{-- Mobile Download Button --}} + + + + {{-- Tabs --}}
- {{-- Mobile Download Button --}} - - - - {{-- Mobile Dropdown --}}
@@ -84,7 +89,7 @@ {{-- Mod Description --}}
- {{-- The description below is safe to write directly because it has been run though HTMLPurifier during the import process. --}} + {{-- The description below is safe to write directly because it has been run though HTMLPurifier. --}} {!! Str::markdown($mod->description) !!}