@@ -355,12 +355,55 @@ DTformat <- function(
355355 initComplete <- NULL
356356 # Summary Button
357357 if (summary == " documents" & " Paper" %in% names(df )) {
358+
358359 df <- df %> %
359- mutate(Summary = paste0(' <button id="custom_btn" onclick="Shiny.onInputChange(\' button_id\' , \' ' , Paper , ' \' )">▶️</button>' )) %> %
360+ mutate(Summary = paste0(
361+ ' <div style="display: flex; justify-content: center; align-items: center; height: 100%; width: 100%;">' ,
362+ ' <button id="custom_btn" style="' ,
363+ ' width: 24px; height: 24px; ' ,
364+ ' border-radius: 50%; ' ,
365+ ' border: none; ' ,
366+ ' background: linear-gradient(135deg, #4285f4 0%, #1976d2 100%); ' ,
367+ ' color: white; ' ,
368+ ' cursor: pointer; ' ,
369+ ' display: flex; ' ,
370+ ' align-items: center; ' ,
371+ ' justify-content: center; ' ,
372+ ' box-shadow: 0 2px 4px rgba(0,0,0,0.2); ' ,
373+ ' transition: all 0.3s ease; ' ,
374+ ' " ' ,
375+ ' onmouseover="this.style.transform=\' scale(1.1)\' ; this.style.boxShadow=\' 0 4px 8px rgba(0,0,0,0.3)\' ;" ' ,
376+ ' onmouseout="this.style.transform=\' scale(1)\' ; this.style.boxShadow=\' 0 2px 4px rgba(0,0,0,0.2)\' ;" ' ,
377+ ' onclick="Shiny.onInputChange(\' button_id\' , \' ' , Paper , ' \' )">' ,
378+ ' <i class="fas fa-search-plus" style="font-size: 14px;"></i>' ,
379+ ' </button>' ,
380+ ' </div>'
381+ )) %> %
360382 select(Summary , everything())
361383 } else if (summary == " historiograph" & " Paper" %in% names(df )) {
362384 df <- df %> %
363- mutate(Summary = paste0(' <button id="custom_btn" onclick="Shiny.onInputChange(\' button_id\' , \' ' , SR , ' \' )">▶️</button>' )) %> %
385+ mutate(Summary = paste0(
386+ ' <div style="display: flex; justify-content: center; align-items: center; height: 100%; width: 100%;">' ,
387+ ' <button id="custom_btn" style="' ,
388+ ' width: 32px; height: 32px; ' ,
389+ ' border-radius: 50%; ' ,
390+ ' border: none; ' ,
391+ ' background: linear-gradient(135deg, #4285f4 0%, #1976d2 100%); ' ,
392+ ' color: white; ' ,
393+ ' cursor: pointer; ' ,
394+ ' display: flex; ' ,
395+ ' align-items: center; ' ,
396+ ' justify-content: center; ' ,
397+ ' box-shadow: 0 2px 4px rgba(0,0,0,0.2); ' ,
398+ ' transition: all 0.3s ease; ' ,
399+ ' " ' ,
400+ ' onmouseover="this.style.transform=\' scale(1.1)\' ; this.style.boxShadow=\' 0 4px 8px rgba(0,0,0,0.3)\' ;" ' ,
401+ ' onmouseout="this.style.transform=\' scale(1)\' ; this.style.boxShadow=\' 0 2px 4px rgba(0,0,0,0.2)\' ;" ' ,
402+ ' onclick="Shiny.onInputChange(\' button_id\' , \' ' , SR , ' \' )">' ,
403+ ' <i class="fas fa-search-plus" style="font-size: 14px;"></i>' ,
404+ ' </button>' ,
405+ ' </div>'
406+ )) %> %
364407 select(Summary , everything()) %> %
365408 select(- SR )
366409 } else if (summary == " authors" & " Author" %in% names(df )) {
0 commit comments