From 85bd3d391c74b57566f8cbe97e4f2a0288b5918b Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sat, 12 Feb 2022 02:37:12 -0800 Subject: [PATCH] Fix table button font --- src/components/viewtypes/ListViewTable.tsx | 72 ++++++++++++---------- src/components/viewtypes/styled.tsx | 2 +- 2 files changed, 39 insertions(+), 35 deletions(-) diff --git a/src/components/viewtypes/ListViewTable.tsx b/src/components/viewtypes/ListViewTable.tsx index c2def90..52425b2 100644 --- a/src/components/viewtypes/ListViewTable.tsx +++ b/src/components/viewtypes/ListViewTable.tsx @@ -96,7 +96,11 @@ const StyledTable = styled(Table)<{ rowHeight: number; $isDragging: boolean }>` } .rs-table-row.playing { - color: ${(props) => props.theme.colors.primary}; + color: ${(props) => props.theme.colors.primary} !important; + + span { + color: ${(props) => props.theme.colors.primary} !important; + } .rs-btn { color: ${(props) => props.theme.colors.primary}; @@ -751,40 +755,40 @@ const ListViewTable = ({ - - {(rowData.artist || []).map((artist: GenericItem, i: number) => ( - - - {i > 0 && ', '} - - - { - if (!e.ctrlKey && !e.shiftKey) { - if (artist.id && !isModal) { - history.push(`/library/artist/${artist.id}`); - } else if (artist.id && isModal) { - dispatch( - addModalPage({ - pageType: 'artist', - id: artist.id, - }) - ); - } + {rowData.artist.map((artist: GenericItem, i: number) => ( + + {i > 0 && ', '} + + { + if (!e.ctrlKey && !e.shiftKey) { + if (artist.id && !isModal) { + history.push(`/library/artist/${artist.id}`); + } else if (artist.id && isModal) { + dispatch( + addModalPage({ + pageType: 'artist', + id: artist.id, + }) + ); } - }} - > - {artist.title} - - - - ))} - + } + }} + > + {artist.title} + + + + ))} diff --git a/src/components/viewtypes/styled.tsx b/src/components/viewtypes/styled.tsx index ba8406c..4292a4b 100644 --- a/src/components/viewtypes/styled.tsx +++ b/src/components/viewtypes/styled.tsx @@ -6,7 +6,7 @@ export const TableLinkButton = styled(Button)<{ active?: boolean; font?: string; }>` - font-size: ${(props) => props.fontsize}; + font-size: ${(props) => props.font}; background: transparent; max-width: 100%; padding: 0px;