From 636c227a83d87c6ddb784bf6239de81bd8dacc6a Mon Sep 17 00:00:00 2001 From: jeffvli Date: Tue, 3 Jun 2025 01:05:19 -0700 Subject: [PATCH] replace and fix position of current track play icon --- .../virtual-table/cells/row-index-cell.tsx | 88 ++++++++++--------- 1 file changed, 48 insertions(+), 40 deletions(-) diff --git a/src/renderer/components/virtual-table/cells/row-index-cell.tsx b/src/renderer/components/virtual-table/cells/row-index-cell.tsx index bd18de2a..f7702bf3 100644 --- a/src/renderer/components/virtual-table/cells/row-index-cell.tsx +++ b/src/renderer/components/virtual-table/cells/row-index-cell.tsx @@ -1,5 +1,7 @@ import type { ICellRendererParams } from '@ag-grid-community/core'; +import { RiPlayFill } from 'react-icons/ri'; + import { Text } from '/@/renderer/components/text'; import { CellContainer } from '/@/renderer/components/virtual-table/cells/generic-cell'; @@ -93,45 +95,45 @@ import { CellContainer } from '/@/renderer/components/virtual-table/cells/generi // ); // }; -const StaticSvg = () => { - return ( -
- - - - - - -
- ); -}; +// const StaticSvg = () => { +// return ( +//
+// +// +// +// +// +// +//
+// ); +// }; export const RowIndexCell = ({ eGridCell, value }: ICellRendererParams) => { const classList = eGridCell.classList; @@ -142,7 +144,13 @@ export const RowIndexCell = ({ eGridCell, value }: ICellRendererParams) => { return ( - {isPlaying && (isCurrentSong ? : null)} + {isPlaying && + (isCurrentSong ? ( + + ) : null)}