From 08233f6e80a8d65c0d729ac5b521e6669cd23d38 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sat, 15 Mar 2025 14:59:01 +0800 Subject: [PATCH] reformat --- src/renderer/src/SegmentList.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/SegmentList.tsx b/src/renderer/src/SegmentList.tsx index c6e387a4..554df2bf 100644 --- a/src/renderer/src/SegmentList.tsx +++ b/src/renderer/src/SegmentList.tsx @@ -159,14 +159,20 @@ const Segment = memo(({ }, 300, [isActive]); function renderNumber() { - if (invertCutSegments || !('segColorIndex' in seg)) return ; + if (invertCutSegments || !('segColorIndex' in seg)) { + return ; + } const segColor = getSegColor(seg); const color = segColor.desaturate(0.25).lightness(darkMode ? 35 : 55); const borderColor = darkMode ? color.lighten(0.5) : color.darken(0.3); - return {index + 1}; + return ( + + {index + 1} + + ); } const onDoubleClick = useCallback(() => {