File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { Loading } from '@components/atoms';
12
12
import useClickOutside from '@hooks/useClickOutside' ;
13
13
14
14
type Suggestion = {
15
- id : string ;
15
+ scid : string ;
16
16
title : string ;
17
17
authorsYear : string ;
18
18
} ;
@@ -134,12 +134,12 @@ export default function Search({
134
134
< ul className = " max-h-60 overflow-auto" >
135
135
{ suggestions . map ( ( s ) => (
136
136
< li
137
- key = { s . id }
138
- className = { `p-2 ${ knownIds . has ( s . id )
137
+ key = { s . scid }
138
+ className = { `p-2 ${ knownIds . has ( s . scid )
139
139
? 'bg-gray-100 text-gray-400 cursor-default'
140
140
: 'hover:bg-blue-100 cursor-pointer'
141
141
} border-b-[1px] border-b-gray-200`}
142
- onClick = { ( ) => ! knownIds . has ( s . id ) && handleSelect ( s . id ) }
142
+ onClick = { ( ) => ! knownIds . has ( s . scid ) && handleSelect ( s . scid ) }
143
143
>
144
144
< div className = 'text-[14px]' >
145
145
{ s . title }
Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ export default function PaperGraph() {
52
52
. alphaDecay ( 0.08 )
53
53
. force ( 'link' , d3 . forceLink ( data . links )
54
54
. id ( ( d : any ) => d . id )
55
- . distance ( 150 )
56
- . strength ( 0.7 )
55
+ . distance ( 300 )
56
+ . strength ( 0.2 )
57
57
)
58
58
// .force('charge', d3.forceManyBody().strength(-30))
59
59
. force ( 'center' , d3 . forceCenter ( GRAPH_WIDTH / 2 , GRAPH_HEIGHT / 2 ) )
You can’t perform that action at this time.
0 commit comments