mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 12:10:41 -05:00
Mod Detail Page Thumbnail Bug
This resolves an issue where the mod detail page would attempt to show an image if one did not exist, and would show a placeholder if the image did exist.
This commit is contained in:
parent
a60bb5819a
commit
9a57925c63
@ -17,9 +17,9 @@
|
|||||||
<div class="flex flex-col sm:flex-row gap-4 sm:gap-6">
|
<div class="flex flex-col sm:flex-row gap-4 sm:gap-6">
|
||||||
<div class="grow-0 shrink-0 flex justify-center items-center">
|
<div class="grow-0 shrink-0 flex justify-center items-center">
|
||||||
@if ($mod->thumbnail)
|
@if ($mod->thumbnail)
|
||||||
<img src="https://placehold.co/144x144/31343C/EEE?font=source-sans-pro&text={{ urlencode($mod->name) }}" alt="{{ $mod->name }}" class="w-36 rounded-lg">
|
|
||||||
@else
|
|
||||||
<img src="{{ $mod->thumbnailUrl }}" alt="{{ $mod->name }}" class="w-36 rounded-lg">
|
<img src="{{ $mod->thumbnailUrl }}" alt="{{ $mod->name }}" class="w-36 rounded-lg">
|
||||||
|
@else
|
||||||
|
<img src="https://placehold.co/144x144/31343C/EEE?font=source-sans-pro&text={{ urlencode($mod->name) }}" alt="{{ $mod->name }}" class="w-36 rounded-lg">
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class="grow flex flex-col justify-center items-center sm:items-start text-gray-800 dark:text-gray-200">
|
<div class="grow flex flex-col justify-center items-center sm:items-start text-gray-800 dark:text-gray-200">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user