Skip to content

Commit 29f3e23

Browse files
committed
feat: Make album tracklist collapsible, simplify "Add to collection" text, add modal blur styling, and remove About page footer.
1 parent 2a84f03 commit 29f3e23

File tree

9 files changed

+25
-22
lines changed

9 files changed

+25
-22
lines changed

frontend/src/components/Settings/AboutSettings.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, useEffect } from 'react';
2-
import { Heart } from 'lucide-react';
2+
33
import { useTranslation } from 'react-i18next';
44
import axios from 'axios';
55

@@ -74,11 +74,7 @@ const AboutSettings: React.FC = () => {
7474
</div>
7575
</div>
7676

77-
<div className="text-xs opacity-70 mt-4 text-center">
78-
<div className="text-xs opacity-70 mt-4 text-center flex justify-center items-center gap-1">
79-
{t('settings.madeWith')} <Heart size={12} className="text-error" fill="currentColor" /> {t('settings.by')} <a href="https://github.com/jeanball" target="_blank" rel="noopener noreferrer" className="link link-hover">Jeanball</a>
80-
</div>
81-
</div>
77+
8278
</div>
8379
</div>
8480
);

frontend/src/index.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
@tailwind base;
22
@tailwind components;
3-
@tailwind utilities;
3+
@tailwind utilities;
4+
5+
@layer components {
6+
.modal-box {
7+
background-color: oklch(var(--b1) / 0.75) !important;
8+
backdrop-filter: blur(8px) !important;
9+
}
10+
}

frontend/src/locales/de/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
"selectFormat": "Format zum Hinzufügen auswählen",
227227
"goBack": "Zurück",
228228
"confirmAddTitle": "Zur Sammlung hinzufügen?",
229-
"confirmAddYes": "Ja, hinzufügen"
229+
"confirmAddYes": "Hinzufügen"
230230
},
231231
"search": {
232232
"placeholder": "Suchen Sie nach Künstlern oder Alben...",

frontend/src/locales/en/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
"selectFormat": "Select a format to add",
245245
"goBack": "Go Back",
246246
"confirmAddTitle": "Add to your collection?",
247-
"confirmAddYes": "Yes, add it"
247+
"confirmAddYes": "Add"
248248
},
249249
"search": {
250250
"placeholder": "Search for artists or albums...",

frontend/src/locales/es/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
"selectFormat": "Selecciona un formato para añadir",
227227
"goBack": "Volver",
228228
"confirmAddTitle": "¿Añadir a tu colección?",
229-
"confirmAddYes": "Sí, añadir"
229+
"confirmAddYes": "Añadir"
230230
},
231231
"search": {
232232
"placeholder": "Buscar artistas o álbumes...",

frontend/src/locales/fr/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
"selectFormat": "Sélectionnez un format à ajouter",
245245
"goBack": "Retour",
246246
"confirmAddTitle": "Ajouter à votre collection ?",
247-
"confirmAddYes": "Oui, ajouter"
247+
"confirmAddYes": "Ajouter"
248248
},
249249
"search": {
250250
"placeholder": "Rechercher des artistes ou des albums...",

frontend/src/locales/pt/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
"selectFormat": "Selecione um formato para adicionar",
227227
"goBack": "Voltar",
228228
"confirmAddTitle": "Adicionar à sua coleção?",
229-
"confirmAddYes": "Sim, adicionar"
229+
"confirmAddYes": "Adicionar"
230230
},
231231
"search": {
232232
"placeholder": "Buscar artistas ou álbuns...",

frontend/src/locales/zh/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
"selectFormat": "选择要添加的格式",
227227
"goBack": "返回",
228228
"confirmAddTitle": "添加到您的收藏?",
229-
"confirmAddYes": "是的,添加"
229+
"confirmAddYes": "添加"
230230
},
231231
"search": {
232232
"placeholder": "搜索艺术家或专辑...",

frontend/src/pages/AlbumDetailPage.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,14 @@ const AlbumDetailPage: React.FC = () => {
293293

294294
{/* Tracklist Section */}
295295
{tracklist.length > 0 && (
296-
<div className="card bg-base-200 shadow-xl mb-8">
297-
<div className="card-body">
298-
<h2 className="card-title text-2xl mb-4 flex items-center gap-2">
299-
<svg xmlns="http://www.w3.org/2000/svg" className="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
300-
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3" />
301-
</svg>
302-
{t('album.tracklist')} ({t('album.trackCount', { count: tracklist.length })})
303-
</h2>
296+
<details className="collapse collapse-arrow bg-base-200 shadow-xl mb-8">
297+
<summary className="collapse-title text-2xl font-bold flex items-center gap-2">
298+
<svg xmlns="http://www.w3.org/2000/svg" className="h-6 w-6 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor">
299+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3" />
300+
</svg>
301+
{t('album.tracklist')} ({t('album.trackCount', { count: tracklist.length })})
302+
</summary>
303+
<div className="collapse-content">
304304
<div className="overflow-x-auto">
305305
<table className="table table-zebra">
306306
<thead>
@@ -327,7 +327,7 @@ const AlbumDetailPage: React.FC = () => {
327327
</table>
328328
</div>
329329
</div>
330-
</div>
330+
</details>
331331
)}
332332

333333
{/* Rematch Modal */}

0 commit comments

Comments
 (0)