@@ -165,46 +165,46 @@ export function NMRResultView({ result, debug }: { result: SearchResult; debug?:
165
165
} , [ addToResultCache , pid , title ] )
166
166
167
167
return (
168
- < div className = { `m-2 rounded-lg border border-border p-4 ${ exactPidMatch ? "animate-outline-ping" : "" } ` } >
169
- < div className = "grid grid-rows-[100px_1fr] gap-4 overflow-x-auto md:max-w-full md:grid-cols-[200px_1fr] md:grid-rows-1" >
170
- < div className = "flex justify-center rounded md:items-center p-2 dark:invert" >
168
+ < div className = { `rfs- m-2 rfs- rounded-lg rfs- border rfs- border-border rfs- p-4 ${ exactPidMatch ? "rfs- animate-outline-ping" : "" } ` } >
169
+ < div className = "rfs- grid rfs- grid-rows-[100px_1fr] rfs- gap-4 rfs- overflow-x-auto md:rfs- max-w-full md:rfs- grid-cols-[200px_1fr] md:rfs- grid-rows-1" >
170
+ < div className = "rfs- flex rfs- justify-center rfs- rounded md:rfs- items-center rfs- p-2 dark:rfs- invert" >
171
171
{ previewImage ? (
172
- < img className = "md:size-[200px]" src = { previewImage } alt = { `Preview for ${ title } ` } />
172
+ < img className = "md:rfs- size-[200px]" src = { previewImage } alt = { `Preview for ${ title } ` } />
173
173
) : (
174
- < div className = "flex flex-col justify-center dark:text-background" >
175
- < ImageOff className = "size-6 text-muted-foreground/50" />
174
+ < div className = "rfs- flex rfs- flex-col rfs- justify-center dark:rfs- text-background" >
175
+ < ImageOff className = "rfs- size-6 rfs- text-muted-foreground/50" />
176
176
</ div >
177
177
) }
178
178
</ div >
179
- < div className = "flex flex-col overflow-x-auto md:max-w-full" >
179
+ < div className = "rfs- flex rfs- flex-col rfs- overflow-x-auto md:rfs- max-w-full" >
180
180
{ exactPidMatch && (
181
- < div className = "mb-2" >
181
+ < div className = "rfs- mb-2" >
182
182
< Badge > Exact Match</ Badge >
183
183
</ div >
184
184
) }
185
- < div className = "font-bold md:text-xl" >
185
+ < div className = "rfs- font-bold md:rfs- text-xl" >
186
186
{ title }
187
- < span className = "ml-2 text-sm font-normal text-muted-foreground" >
187
+ < span className = "rfs- ml-2 rfs- text-sm rfs- font-normal rfs- text-muted-foreground" >
188
188
{ identifier } - { creationDate }
189
189
</ span >
190
190
</ div >
191
- < a href = { `https://hdl.handle.net/${ id } ` } target = "_blank" className = "mb-2 block leading-3 hover:underline" >
192
- < span className = "text-sm text-muted-foreground" > { id } </ span >
191
+ < a href = { `https://hdl.handle.net/${ id } ` } target = "_blank" className = "rfs- mb-2 rfs- block rfs- leading-3 hover:rfs- underline" >
192
+ < span className = "rfs- text-sm rfs- text-muted-foreground" > { id } </ span >
193
193
</ a >
194
- < div className = "flex flex-wrap gap-2" >
195
- < Badge variant = "secondary" className = "truncate" >
196
- < span className = "flex truncate" >
197
- < GraduationCap className = "mr-2 size-4 shrink-0" /> { resourceType }
194
+ < div className = "rfs- flex rfs- flex-wrap rfs- gap-2" >
195
+ < Badge variant = "secondary" className = "rfs- truncate" >
196
+ < span className = "rfs- flex rfs- truncate" >
197
+ < GraduationCap className = "rfs- mr-2 rfs- size-4 rfs- shrink-0" /> { resourceType }
198
198
</ span >
199
199
</ Badge >
200
- < Badge variant = "secondary" className = "truncate" >
201
- < span className = "flex truncate" >
202
- < Globe className = "mr-2 size-4 shrink-0" /> { hadPrimarySource }
200
+ < Badge variant = "secondary" className = "rfs- truncate" >
201
+ < span className = "rfs- flex rfs- truncate" >
202
+ < Globe className = "rfs- mr-2 rfs- size-4 rfs- shrink-0" /> { hadPrimarySource }
203
203
</ span >
204
204
</ Badge >
205
- < Badge variant = "secondary" className = "truncate" >
206
- < span className = "flex truncate" >
207
- < Scale className = "mr-2 size-4 shrink-0" /> ️{ license }
205
+ < Badge variant = "secondary" className = "rfs- truncate" >
206
+ < span className = "rfs- flex rfs- truncate" >
207
+ < Scale className = "rfs- mr-2 rfs- size-4 rfs- shrink-0" /> ️{ license }
208
208
</ span >
209
209
</ Badge >
210
210
{ /*<Badge variant="secondary" className="truncate">*/ }
@@ -214,27 +214,27 @@ export function NMRResultView({ result, debug }: { result: SearchResult; debug?:
214
214
{ /* </span>*/ }
215
215
{ /*</Badge>*/ }
216
216
</ div >
217
- < div className = "grow" > </ div >
218
- < div className = "mt-8 flex flex-col flex-wrap justify-end gap-2 md:flex-row md:items-center md:gap-4" >
217
+ < div className = "rfs- grow" > </ div >
218
+ < div className = "rfs- mt-8 rfs- flex rfs- flex-col rfs- flex-wrap rfs- justify-end rfs- gap-2 md:rfs- flex-row md:rfs- items-center md:rfs- gap-4" >
219
219
{ debug && (
220
220
< Dialog >
221
221
< DialogTrigger asChild >
222
222
< Button variant = "secondary" size = "sm" >
223
223
Show FDO
224
224
</ Button >
225
225
</ DialogTrigger >
226
- < DialogContent className = "max-h-full max-w-[1000px] overflow-y-auto" >
226
+ < DialogContent className = "rfs- max-h-full rfs- max-w-[1000px] rfs- overflow-y-auto" >
227
227
< ObjectRender data = { result } />
228
228
</ DialogContent >
229
229
</ Dialog >
230
230
) }
231
231
{ isMetadataFor . length > 0 && (
232
- < div className = "flex items-center" >
233
- < Button className = "grow rounded-r-none" size = "sm" variant = "secondary" onClick = { showRelatedItems } >
234
- < GitFork className = "mr-1 size-4" /> Show Related Items
232
+ < div className = "rfs- flex rfs- items-center" >
233
+ < Button className = "rfs- grow rfs- rounded-r-none" size = "sm" variant = "secondary" onClick = { showRelatedItems } >
234
+ < GitFork className = "rfs- mr-1 rfs- size-4" /> Show Related Items
235
235
</ Button >
236
236
< Button
237
- className = "rounded-l-none border-l border-l-border text-xs font-bold"
237
+ className = "rfs- rounded-l-none rfs- border-l rfs- border-l-border rfs- text-xs rfs- font-bold"
238
238
size = "sm"
239
239
variant = "secondary"
240
240
onClick = { showRelatedItems }
@@ -245,31 +245,31 @@ export function NMRResultView({ result, debug }: { result: SearchResult; debug?:
245
245
) }
246
246
{ hasMetadata && (
247
247
< Button className = "" size = "sm" variant = "secondary" onClick = { goToMetadata } >
248
- < BookText className = "mr-1 size-4" /> Find Metadata
248
+ < BookText className = "rfs- mr-1 rfs- size-4" /> Find Metadata
249
249
</ Button >
250
250
) }
251
251
252
- < div className = "flex items-center" >
252
+ < div className = "rfs- flex rfs- items-center" >
253
253
< a href = { doLocation } target = "_blank" className = "grow" >
254
- < Button size = "sm" className = "w-full rounded-r-none px-4" >
254
+ < Button size = "sm" className = "rfs- w-full rfs- rounded-r-none rfs- px-4" >
255
255
Open
256
256
</ Button >
257
257
</ a >
258
258
< DropdownMenu >
259
259
< DropdownMenuTrigger asChild >
260
- < Button size = "sm" className = "rounded-l-none border-l" >
261
- < ChevronDown className = "mr-1 size-4" />
260
+ < Button size = "sm" className = "rfs- rounded-l-none rfs- border-l" >
261
+ < ChevronDown className = "rfs- mr-1 rfs- size-4" />
262
262
</ Button >
263
263
</ DropdownMenuTrigger >
264
264
< DropdownMenuContent >
265
265
< a href = { doLocation } target = "_blank" >
266
266
< DropdownMenuItem >
267
- < LinkIcon className = "mr-1 size-4" /> Open Source
267
+ < LinkIcon className = "rfs- mr-1 rfs- size-4" /> Open Source
268
268
</ DropdownMenuItem >
269
269
</ a >
270
270
< a href = { `https://kit-data-manager.github.io/fairdoscope/?pid=${ pid } ` } target = "_blank" >
271
271
< DropdownMenuItem >
272
- < Microscope className = "mr-1 size-4" /> Open in FAIR-DOscope
272
+ < Microscope className = "rfs- mr-1 rfs- size-4" /> Open in FAIR-DOscope
273
273
</ DropdownMenuItem >
274
274
</ a >
275
275
</ DropdownMenuContent >
0 commit comments