From 18027d4292bef3e4167b8d05422303c4f4922a9a Mon Sep 17 00:00:00 2001 From: jeffvli Date: Wed, 9 Oct 2024 18:27:48 -0700 Subject: [PATCH] Remove current song list index animation (#783) --- .../virtual-table/cells/row-index-cell.tsx | 187 +++++++++--------- 1 file changed, 91 insertions(+), 96 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 13d46142..9307e788 100644 --- a/src/renderer/components/virtual-table/cells/row-index-cell.tsx +++ b/src/renderer/components/virtual-table/cells/row-index-cell.tsx @@ -2,95 +2,95 @@ import type { ICellRendererParams } from '@ag-grid-community/core'; import { Text } from '/@/renderer/components/text'; import { CellContainer } from '/@/renderer/components/virtual-table/cells/generic-cell'; -const AnimatedSvg = () => { - return ( -
- - - - - - - - - - - - - - - - -
- ); -}; +// const AnimatedSvg = () => { +// return ( +//
+// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +//
+// ); +// }; const StaticSvg = () => { return ( @@ -134,19 +134,14 @@ const StaticSvg = () => { export const RowIndexCell = ({ value, eGridCell }: ICellRendererParams) => { const classList = eGridCell.classList; - const isFocused = classList.contains('focused'); + // const isFocused = classList.contains('focused'); const isPlaying = classList.contains('playing'); const isCurrentSong = classList.contains('current-song-cell') || classList.contains('current-playlist-song-cell'); return ( - {isPlaying && - (isFocused && isCurrentSong ? ( - - ) : isCurrentSong ? ( - - ) : null)} + {isPlaying && (isCurrentSong ? : null)}