File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed
Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ fn NodeInstanceView(
333333 </p>
334334 <p>
335335 <div class="flex flex-row" >
336- <div class="basis-2/3 " >
336+ <div class="basis-1/2 " >
337337 <span class="node-info-item" >"Balance: " </span>
338338 <div
339339 class="tooltip tooltip-bottom tooltip-info"
@@ -355,11 +355,27 @@ fn NodeInstanceView(
355355 </span>
356356 </div>
357357 </div>
358- <div class="basis-1/3 " >
358+ <div class="basis-1/2 " >
359359 <span class="node-info-item" >"Rewards: " </span>
360- { move || {
361- info. read( ) . rewards. map_or( " -" . to_string( ) , |v| v. to_string( ) )
362- } }
360+ <div
361+ class="tooltip tooltip-bottom tooltip-info"
362+ data-tip=move || {
363+ info. read( )
364+ . rewards
365+ . map_or(
366+ "" . to_string( ) ,
367+ |v| format_units( v, "ether" ) . unwrap_or_default( ) ,
368+ )
369+ }
370+ >
371+ <span class="underline decoration-dotted" >
372+ { move || {
373+ info. read( )
374+ . rewards
375+ . map_or( " -" . to_string( ) , truncated_balance_str)
376+ } }
377+ </span>
378+ </div>
363379 </div>
364380 </div>
365381 </p>
You can’t perform that action at this time.
0 commit comments