@@ -332,20 +332,16 @@ function Segment({
332332 { linkedRecords . length > 0 && (
333333 < div >
334334 { linkedRecords . map ( ( x ) => (
335- < div key = { x . id } >
336- { linkedRecords . map ( ( x ) => (
337- < div
338- className = "text-xs font-medium text-emerald-900/80 hover:text-emerald-900 rounded-sm mb-1 transition-all cursor-pointer text-end"
339- key = { x . id }
340- onClick = { ( e ) => {
341- dispatch ( { type : "openPage" , page : x . page } ) ;
342- e . stopPropagation ( ) ;
343- } }
344- >
345- Page { ( x . page ?? 0 ) + 1 } { " " }
346- < DescriptionOutlined className = "h-4 inline mb-0.5" />
347- </ div >
348- ) ) }
335+ < div
336+ className = "text-xs font-medium text-emerald-900/80 hover:text-emerald-900 rounded-sm mb-1 transition-all cursor-pointer text-end"
337+ key = { x . id }
338+ onClick = { ( e ) => {
339+ dispatch ( { type : "openPage" , page : x . page } ) ;
340+ e . stopPropagation ( ) ;
341+ } }
342+ >
343+ Page { ( x . page ?? 0 ) + 1 } { " " }
344+ < DescriptionOutlined className = "h-4 inline mb-0.5" />
349345 </ div >
350346 ) ) }
351347 </ div >
@@ -410,27 +406,20 @@ function CurrentSegment({
410406 </ div >
411407
412408 < div className = "p-1 flex flex-col justify-center" >
413- { linkedRecords . length > 0 && (
414- < div >
415- { linkedRecords . map ( ( x ) => (
416- < div key = { x . id } >
417- { linkedRecords . map ( ( x ) => (
418- < div
419- className = "text-xs font-medium text-emerald-900/80 hover:text-emerald-900 mb-1 rounded-sm transition-all cursor-pointer text-end"
420- key = { x . id }
421- onClick = { ( e ) => {
422- dispatch ( { type : "openPage" , page : x . page } ) ;
423- e . stopPropagation ( ) ;
424- } }
425- >
426- Page { ( x . page ?? 0 ) + 1 } { " " }
427- < DescriptionOutlined className = "h-4 inline mb-0.5" />
428- </ div >
429- ) ) }
430- </ div >
431- ) ) }
432- </ div >
433- ) }
409+ { linkedRecords . length > 0 &&
410+ linkedRecords . map ( ( x ) => (
411+ < div
412+ className = "text-xs font-medium text-emerald-900/80 hover:text-emerald-900 mb-1 rounded-sm transition-all cursor-pointer text-end"
413+ key = { x . id }
414+ onClick = { ( e ) => {
415+ dispatch ( { type : "openPage" , page : x . page } ) ;
416+ e . stopPropagation ( ) ;
417+ } }
418+ >
419+ Page { ( x . page ?? 0 ) + 1 } { " " }
420+ < DescriptionOutlined className = "h-4 inline mb-0.5" />
421+ </ div >
422+ ) ) }
434423
435424 < div
436425 className = "text-xs font-medium text-emerald-900/80 hover:text-emerald-900 rounded-sm transition-all cursor-pointer text-end"
0 commit comments