Skip to content

Commit 9084815

Browse files
authored
fix: Gallery header always showing up (#3499)
1 parent 9dc162e commit 9084815

File tree

3 files changed

+49
-3
lines changed

3 files changed

+49
-3
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
3+
/**
4+
* SPDX-License-Identifier: MIT
5+
* Copyright (c) 2017-2018 Tobias Reich
6+
* Copyright (c) 2018-2025 LycheeOrg.
7+
*/
8+
9+
use Illuminate\Database\Migrations\Migration;
10+
use Illuminate\Support\Facades\Artisan;
11+
use Illuminate\Support\Facades\DB;
12+
use Symfony\Component\Console\Output\ConsoleOutput;
13+
use Symfony\Component\Console\Output\ConsoleSectionOutput;
14+
15+
return new class() extends Migration {
16+
private ConsoleOutput $output;
17+
private ConsoleSectionOutput $msg_section;
18+
19+
public function __construct()
20+
{
21+
$this->output = new ConsoleOutput();
22+
$this->msg_section = $this->output->section();
23+
}
24+
25+
/**
26+
* Run the migrations.
27+
*
28+
* @return void
29+
*/
30+
public function up(): void
31+
{
32+
DB::table('configs')->where('key', 'version')->update(['value' => '060614']);
33+
Artisan::call('cache:clear');
34+
$this->msg_section->writeln('<info>Info:</info> Cleared cache for version 6.6.14');
35+
}
36+
37+
/**
38+
* Reverse the migrations.
39+
*
40+
* @return void
41+
*/
42+
public function down(): void
43+
{
44+
DB::table('configs')->where('key', 'version')->update(['value' => '060613']);
45+
}
46+
};

resources/js/components/headers/AlbumsHeader.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@
103103
</a>
104104
</template>
105105
</ContextMenu>
106-
<div class="relative w-full h-[calc(100vh/2)] -mt-14 z-0">
107-
<img :src="props.config.header_image_url" v-if="props.config.header_image_url !== ''" class="object-cover h-full w-full" />
106+
<div class="relative w-full h-[calc(100vh/2)] -mt-14 z-0" v-if="props.config.header_image_url !== ''">
107+
<img :src="props.config.header_image_url" class="object-cover h-full w-full" />
108108
<div class="absolute top-0 left-0 w-full h-full flex items-center justify-center px-20">
109109
<h1
110110
class="text-sm font-bold sm:text-lg md:text-3xl md:font-normal text-surface-0 uppercase text-center text-shadow-md text-shadow-black/25"

version.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.6.13
1+
6.6.14

0 commit comments

Comments
 (0)