mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-09 21:42:57 +00:00
imagick -> gd, empty featured post section
Some checks failed
Docker / build (push) Has been cancelled
Some checks failed
Docker / build (push) Has been cancelled
This commit is contained in:
parent
ca49edc553
commit
21e59d775a
4 changed files with 9 additions and 5 deletions
|
|
@ -36,9 +36,8 @@ HTML;
|
||||||
{
|
{
|
||||||
if ($this->post == null)
|
if ($this->post == null)
|
||||||
{
|
{
|
||||||
return <<<'HTML'
|
$href = route('posts.home');
|
||||||
<div></div>
|
return view('livewire.post-feature-empty');
|
||||||
HTML;
|
|
||||||
}
|
}
|
||||||
return view('livewire.post-feature');
|
return view('livewire.post-feature');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ return [
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'driver' => \Intervention\Image\Drivers\Imagick\Driver::class,
|
'driver' => \Intervention\Image\Drivers\Gd\Driver::class,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
upload_max_filesize = 100M
|
upload_max_filesize = 100M
|
||||||
post_max_size = 128M
|
post_max_size = 128M
|
||||||
memory_limit = 1G
|
memory_limit = 2G
|
||||||
max_execution_time = 120
|
max_execution_time = 120
|
||||||
|
|
|
||||||
5
resources/views/livewire/post-feature-empty.blade.php
Normal file
5
resources/views/livewire/post-feature-empty.blade.php
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
<a class="wa-stack wa-align-items-center wa-placeholder wa-link-plain" href="{{ route('posts.home') }}" wire:navigate.hover>
|
||||||
|
<livewire:app.icon name="image-slash" class="wa-caption-l" style="font-size: var(--wa-font-size-3xl)" />
|
||||||
|
<span class="wa-heading-m">No featured post</span>
|
||||||
|
<p class="wa-caption-l">Mark a post as featured to have it appear here!</p>
|
||||||
|
</a>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue