From d654ef41a49c10ff322968d9d6bd8cbcccc72800 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Sat, 19 Jul 2025 12:51:06 -0500 Subject: [PATCH] Signed-off-by: Matt Bruce --- src/components/common/ListItem.tsx | 18 ++++++++++---- src/features/SongLists/SongLists.tsx | 36 +++++++++++++--------------- 2 files changed, 30 insertions(+), 24 deletions(-) diff --git a/src/components/common/ListItem.tsx b/src/components/common/ListItem.tsx index ba8507a..e3753f8 100644 --- a/src/components/common/ListItem.tsx +++ b/src/components/common/ListItem.tsx @@ -16,6 +16,11 @@ interface ListItemProps { chip?: string; chipColor?: string; disabled?: boolean; + // Additional IonItem props that can be passed through + slot?: string; + detail?: boolean; + button?: boolean; + style?: React.CSSProperties; } export const ListItem: React.FC = ({ @@ -30,7 +35,11 @@ export const ListItem: React.FC = ({ endContent, chip, chipColor = 'primary', - disabled = false + disabled = false, + slot, + detail = false, + button, + style }) => { const itemClassName = `list-item ${className}`.trim(); @@ -53,11 +62,12 @@ export const ListItem: React.FC = ({ return ( {/* Number (if enabled) */} {showNumber && ( diff --git a/src/features/SongLists/SongLists.tsx b/src/features/SongLists/SongLists.tsx index f8cba5a..00dc2bc 100644 --- a/src/features/SongLists/SongLists.tsx +++ b/src/features/SongLists/SongLists.tsx @@ -108,27 +108,23 @@ const SongLists: React.FC = () => { // Available songs get an accordion that expands return ( - handleSongItemClick(songKey)} + - {/* Number */} - - - {/* Use TwoLineDisplay for consistent formatting */} - - - - {availableSongs.length} version{availableSongs.length !== 1 ? 's' : ''} - - + style={{ '--min-height': '60px' } as React.CSSProperties} + onClick={() => handleSongItemClick(songKey)} + endContent={ + + {availableSongs.length} version{availableSongs.length !== 1 ? 's' : ''} + + } + />