@@ -90,40 +90,56 @@ function ProfileHeader() {
9090 targetId = { data ?. target . id }
9191 />
9292 { data ?. target . genomicLocation && (
93- < Field loading = { loading } title = "Location" >
94- < Box component = "span" >
95- < Tooltip title = "build | chromosome:start-end,strand" >
96- < Box
97- component = "span"
98- sx = { {
99- whiteSpace : "nowrap" ,
100- background : theme => theme . palette . grey [ 600 ] ,
101- border : theme => `1px solid ${ theme . palette . grey [ 600 ] } ` ,
102- p : "1px 5px" ,
103- color : "white" ,
104- borderRadius : "5px 0 0 5px" ,
105- } }
106- >
107- { /* TODO: check UI and add it to getGenomicLocation function */ }
108- GRCh38
109- </ Box >
110- < Box
111- component = "span"
112- sx = { {
113- whiteSpace : "nowrap" ,
114- p : "1px 5px" ,
115- color : theme => theme . palette . grey [ 600 ] ,
116- border : theme => `1px solid ${ theme . palette . grey [ 600 ] } ` ,
117- borderRadius : "0 5px 5px 0" ,
118- } }
119- >
120- { getGenomicLocation ( data ?. target . genomicLocation ) }
121- </ Box >
122- </ Tooltip >
123- </ Box >
124- </ Field >
93+ < Box sx = { { mt : 1 , typography : "body2" } } component = "span" >
94+ < Tooltip title = "build | chromosome:start-end,strand" >
95+ < Box
96+ component = "span"
97+ sx = { {
98+ whiteSpace : "nowrap" ,
99+ background : theme => theme . palette . grey [ 600 ] ,
100+ border : theme => `1px solid ${ theme . palette . grey [ 600 ] } ` ,
101+ p : "1px 5px" ,
102+ color : "white" ,
103+ borderRadius : "5px 0 0 5px" ,
104+ } }
105+ >
106+ { /* TODO: check UI and add it to getGenomicLocation function */ }
107+ GRCh38
108+ </ Box >
109+ < Box
110+ component = "span"
111+ sx = { {
112+ whiteSpace : "nowrap" ,
113+ p : "1px 5px" ,
114+ color : theme => theme . palette . grey [ 600 ] ,
115+ border : theme => `1px solid ${ theme . palette . grey [ 600 ] } ` ,
116+ borderRadius : "0 5px 5px 0" ,
117+ } }
118+ >
119+ { getGenomicLocation ( data ?. target . genomicLocation ) }
120+ </ Box >
121+ </ Tooltip >
122+ </ Box >
125123 ) }
126- < ProfileChipList > { geneInfo . filter ( gi => gi . isVisible ) } </ ProfileChipList >
124+ { geneInfo
125+ . filter ( gi => gi . isVisible )
126+ . map ( e => (
127+ < Box
128+ key = { e . label }
129+ sx = { {
130+ whiteSpace : "nowrap" ,
131+ p : "1px 5px" ,
132+ color : theme => theme . palette . grey [ 600 ] ,
133+ border : theme => `1px solid ${ theme . palette . grey [ 600 ] } ` ,
134+ borderRadius : "5px" ,
135+ width : "min-content" ,
136+ mt : 1 ,
137+ typography : "body2" ,
138+ } }
139+ >
140+ < Tooltip title = { e . tooltip } > { e . label } </ Tooltip >
141+ </ Box >
142+ ) ) }
127143 </ >
128144 < ProfileChipList title = "Synonyms" loading = { loading } >
129145 { synonyms }
0 commit comments