diff --git a/app/Enum/PhotoLayoutType.php b/app/Enum/PhotoLayoutType.php index 4f07bb70868..0ccc23a84c5 100644 --- a/app/Enum/PhotoLayoutType.php +++ b/app/Enum/PhotoLayoutType.php @@ -17,7 +17,6 @@ enum PhotoLayoutType: string { case SQUARE = 'square'; case JUSTIFIED = 'justified'; - case UNJUSTIFIED = 'unjustified'; // ! Legcay case MASONRY = 'masonry'; case GRID = 'grid'; } diff --git a/database/migrations/2025_05_27_081505_drop_unjustified_from_config.php b/database/migrations/2025_05_27_081505_drop_unjustified_from_config.php new file mode 100644 index 00000000000..fb91461d618 --- /dev/null +++ b/database/migrations/2025_05_27_081505_drop_unjustified_from_config.php @@ -0,0 +1,30 @@ +where('key', '=', 'layout')->where('value', '=', self::UNJUSTIFIED)->update(['value' => self::JUSTIFIED]); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + // Nothing to do. + } +}; diff --git a/resources/js/layouts/PhotoLayout.ts b/resources/js/layouts/PhotoLayout.ts index 64b668a1a3c..6ad34011f85 100644 --- a/resources/js/layouts/PhotoLayout.ts +++ b/resources/js/layouts/PhotoLayout.ts @@ -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); diff --git a/resources/js/lychee.d.ts b/resources/js/lychee.d.ts index a307bbb271e..1201cf112a6 100644 --- a/resources/js/lychee.d.ts +++ b/resources/js/lychee.d.ts @@ -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;