File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,11 @@ function toFlowEdges(layout: MyELKNodeLayedOut): FlowEdge[] {
289
289
290
290
export function EClassNode ( { data } : NodeProps < FlowClass > ) {
291
291
return (
292
- < div className = "rounded-md border border-dotted border-black h-full w-full" style = { { backgroundColor : data . color ! || "white" } } >
292
+ < div
293
+ className = "rounded-md border border-dotted border-black h-full w-full"
294
+ style = { { backgroundColor : data . color ! || "white" } }
295
+ title = { data . id }
296
+ >
293
297
{ /* <MyNodeToolbar type="class" id={data.id} selected={data.selected} /> */ }
294
298
< Handle type = "target" position = { Position . Top } className = "invisible" />
295
299
</ div >
@@ -308,7 +312,11 @@ export function ENode(
308
312
< div className = "p-1 rounded-md border bg-white border-black h-full w-full" ref = { props ?. outerRef } >
309
313
{ /* {props?.outerRef ? <></> : <MyNodeToolbar type="class" id={props!.data!.id} selected={props!.data!.selected} /> } */ }
310
314
311
- < div className = "font-mono text-xs truncate max-w-96 min-w-4 text-center" ref = { props ?. innerRef } >
315
+ < div
316
+ className = "font-mono text-xs truncate max-w-96 min-w-4 text-center"
317
+ title = { `${ props ?. data ?. id } \n${ props ?. data ?. label } ` }
318
+ ref = { props ?. innerRef }
319
+ >
312
320
{ props ?. data ?. label }
313
321
</ div >
314
322
{ /* Only show handle if we aren't rendering this to calculate size */ }
You can’t perform that action at this time.
0 commit comments