From 6e2dfa26b7666e7bc6f08ce285cf446fee1dd594 Mon Sep 17 00:00:00 2001 From: shidorien Date: Sun, 7 Jan 2024 17:21:08 +0100 Subject: [PATCH] Add modification after review --- .../maps-mangement-components/filter-panel.component.tsx | 8 ++++---- .../maps-mangement-components/map-item.component.tsx | 6 +++--- src/renderer/index.css | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/renderer/components/maps-mangement-components/filter-panel.component.tsx b/src/renderer/components/maps-mangement-components/filter-panel.component.tsx index 3d1f743d..7962b23e 100644 --- a/src/renderer/components/maps-mangement-components/filter-panel.component.tsx +++ b/src/renderer/components/maps-mangement-components/filter-panel.component.tsx @@ -56,7 +56,7 @@ export function FilterPanel({ className, ref, playlist = false, filter, onChange const renderDurationLabel = (sec: number): JSX.Element => { const textValue = (() => { if (sec === MIN_DURATION) { - return "0"; + return MIN_DURATION; } if (sec === MAX_DURATION) { return "∞"; @@ -72,7 +72,7 @@ export function FilterPanel({ className, ref, playlist = false, filter, onChange const renderNpsLabel = (nps: number): JSX.Element => { const textValue = (() => { if (nps === MIN_NPS) { - return "0" + return MIN_NPS; } if (nps === MAX_NPS) { return "∞"; @@ -170,8 +170,8 @@ export function FilterPanel({ className, ref, playlist = false, filter, onChange
- {t("maps.map-filter-panel.nps")} - {t("maps.map-filter-panel.duration")} + {t("maps.map-filter-panel.nps")} + {t("maps.map-filter-panel.duration")}
diff --git a/src/renderer/components/maps-mangement-components/map-item.component.tsx b/src/renderer/components/maps-mangement-components/map-item.component.tsx index f0e4415d..609792f0 100644 --- a/src/renderer/components/maps-mangement-components/map-item.component.tsx +++ b/src/renderer/components/maps-mangement-components/map-item.component.tsx @@ -246,7 +246,7 @@ export const MapItem = memo(({ hash, title, autor, songAutor, coverUrl, songUrl,
{onDelete && !downloading && ( - +
)} {onDownload && !downloading && ( - +
)} {mapId && ( - +
.tippy-arrow::before {