Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/Enum/PhotoLayoutType.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ enum PhotoLayoutType: string
{
case SQUARE = 'square';
case JUSTIFIED = 'justified';
case UNJUSTIFIED = 'unjustified'; // ! Legcay
case MASONRY = 'masonry';
case GRID = 'grid';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

/**
* SPDX-License-Identifier: MIT
* Copyright (c) 2017-2018 Tobias Reich
* Copyright (c) 2018-2025 LycheeOrg.
*/

use Illuminate\Database\Migrations\Migration;

return new class() extends Migration {
public const UNJUSTIFIED = 'unjustified'; // ! Legacy
public const JUSTIFIED = 'justified';

/**
* Run the migrations.
*/
public function up(): void
{
DB::table('configs')->where('key', '=', 'layout')->where('value', '=', self::UNJUSTIFIED)->update(['value' => self::JUSTIFIED]);
}

/**
* Reverse the migrations.
*/
public function down(): void
{
// Nothing to do.
}
};
1 change: 0 additions & 1 deletion resources/js/layouts/PhotoLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export function useLayouts(
case "square":
return useSquare(photoListing, configRef.value.photo_layout_square_column_width, configRef.value.photo_layout_gap, timelineData);
case "justified":
case "unjustified":
return useJustify(photoListing, configRef.value.photo_layout_justified_row_height, timelineData);
case "masonry":
return useMasonry(photoListing, configRef.value.photo_layout_masonry_column_width, configRef.value.photo_layout_gap);
Expand Down
2 changes: 1 addition & 1 deletion resources/js/lychee.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ declare namespace App.Enum {
| "nextcloud"
| "keycloak";
export type OrderSortingType = "ASC" | "DESC";
export type PhotoLayoutType = "square" | "justified" | "unjustified" | "masonry" | "grid";
export type PhotoLayoutType = "square" | "justified" | "masonry" | "grid";
export type PhotoThumbInfoType = "title" | "description";
export type SeverityType = "emergency" | "alert" | "critical" | "error" | "warning" | "notice" | "info" | "debug";
export type SizeVariantType = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
Expand Down