From a0a8dfc496feb456c724699fe023cc17ebebb37f Mon Sep 17 00:00:00 2001 From: Pierre <63404022+0-Pierre@users.noreply.github.com> Date: Tue, 14 Jan 2025 20:04:14 +0100 Subject: [PATCH] fix: titlecard now have a proper behaviour even if the image is empty and applied prettier to migration file --- server/migration/sqlite/1714310036946-AddMusicSupport.ts | 8 ++++++-- src/components/TitleCard/index.tsx | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/server/migration/sqlite/1714310036946-AddMusicSupport.ts b/server/migration/sqlite/1714310036946-AddMusicSupport.ts index cafb7c546..811ff99a9 100644 --- a/server/migration/sqlite/1714310036946-AddMusicSupport.ts +++ b/server/migration/sqlite/1714310036946-AddMusicSupport.ts @@ -40,7 +40,9 @@ export class AddMusicSupport1714310036946 implements MigrationInterface { ); await queryRunner.query(`DROP TABLE "watchlist"`); - await queryRunner.query(`ALTER TABLE "temporary_watchlist" RENAME TO "watchlist"`); + await queryRunner.query( + `ALTER TABLE "temporary_watchlist" RENAME TO "watchlist"` + ); await queryRunner.query( `CREATE INDEX "IDX_watchlist_mbid" ON "watchlist" ("mbId")` @@ -135,7 +137,9 @@ export class AddMusicSupport1714310036946 implements MigrationInterface { ); await queryRunner.query(`DROP TABLE "watchlist"`); - await queryRunner.query(`ALTER TABLE "temporary_watchlist" RENAME TO "watchlist"`); + await queryRunner.query( + `ALTER TABLE "temporary_watchlist" RENAME TO "watchlist"` + ); await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "musicQuotaLimit"`); await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "musicQuotaDays"`); diff --git a/src/components/TitleCard/index.tsx b/src/components/TitleCard/index.tsx index 223994f83..e7bf7a452 100644 --- a/src/components/TitleCard/index.tsx +++ b/src/components/TitleCard/index.tsx @@ -507,7 +507,7 @@ const TitleCard = ({