diff --git a/app/layout.tsx b/app/layout.tsx index c540393..9d32395 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -26,10 +26,11 @@ export default function RootLayout({ }>) { return ( - + +
-
{children}
+
{children}
diff --git a/components/AllSongsTable.tsx b/components/AllSongsTable.tsx index 069f3f4..96d6f16 100644 --- a/components/AllSongsTable.tsx +++ b/components/AllSongsTable.tsx @@ -56,86 +56,57 @@ function Songs({ actionName, onSelectSong, songBooks, className = "", ...props } .filter((g) => g.songs.length > 0); }, [books, query]); - const th = "p-3 text-xs font-semibold text-neutral-600 dark:text-neutral-400 uppercase tracking-wider"; - return ( - -
+ +
setQuery(e.target.value)} />
-
- - - - - - - - + +
{groups.length === 0 ? ( -
- - - - +

) : ( groups.map(({ book, songs }) => ( - - - - + +
    {songs.map((entry) => ( -
- - - - + ))} - + + )) )} -
NummerTitelAktion
+

Keine Lieder gefunden -

+
+

{book.title} {book.language && ( - + ({book.language}) )} -

+ {entry.songNumber} - + + {entry.song.title} - + - onSelectSong?.( - entry.song, - { id: book.id, title: book.title }, - String(entry.songNumber) - ) - } - className="bg-white dark:bg-black hover:bg-blue-600 dark:hover:bg-blue-600 border border-neutral-300 dark:border-neutral-700 hover:border-blue-600 dark:hover:border-blue-500 hover:text-white font-medium rounded-md px-3 py-1.5 transition text-xs" + onClick={() => onSelectSong?.(entry.song, { id: book.id, title: book.title }, String(entry.songNumber))} + className="shrink-0 w-auto px-3 py-2 text-xs" > {actionName} -
) diff --git a/components/Card.tsx b/components/Card.tsx index 495b328..79856a6 100644 --- a/components/Card.tsx +++ b/components/Card.tsx @@ -17,9 +17,9 @@ export default function Card({ title, hasLeftBorder = false, children, className {/* border-l-2 fügt den Strich links ein, pl-4 macht Platz zum Inhalt */} -
+
{children}
); -} \ No newline at end of file +} diff --git a/components/FormElements.tsx b/components/FormElements.tsx index fd78cad..bfa99f9 100644 --- a/components/FormElements.tsx +++ b/components/FormElements.tsx @@ -36,13 +36,13 @@ function File({ ...props }: ComponentPropsWithoutRef<"input">) { ); } -function Button({ children, ...props }: ComponentPropsWithoutRef<"button">) { +function Button({ children, className = "", ...props }: ComponentPropsWithoutRef<"button">) { return ( ) } @@ -61,4 +61,4 @@ export const Input = { File: File, Button: Button, Label: Label, -}; \ No newline at end of file +}; diff --git a/components/Header.tsx b/components/Header.tsx index d0711fc..4c40ce2 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -2,9 +2,9 @@ import NavItem from "./NavItem"; export default function Header() { return ( -
+
PsalmTafel
-
); -} \ No newline at end of file +}