File tree Expand file tree Collapse file tree 1 file changed +60
-1
lines changed Expand file tree Collapse file tree 1 file changed +60
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import DescriptionIcon from "@mui/icons-material/Description";
66import ExpandLess from "@mui/icons-material/ExpandLess" ;
77import ExpandMore from "@mui/icons-material/ExpandMore" ;
88import HomeIcon from "@mui/icons-material/Home" ;
9+ import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined" ;
910import {
1011 Box ,
1112 Typography ,
@@ -807,7 +808,65 @@ const UpdatedDatasetDetailPage: React.FC = () => {
807808 ) }
808809
809810 { /* ai summary */ }
810- { aiSummary && < ReadMoreText text = { aiSummary } /> }
811+ { aiSummary && (
812+ < >
813+ < Box
814+ sx = { {
815+ display : "flex" ,
816+ alignItems : "center" ,
817+ mb : 0.5 ,
818+ mt : 1 ,
819+ gap : 0.5 ,
820+ } }
821+ >
822+ < Typography
823+ color = { Colors . purple }
824+ sx = { { fontWeight : "bold" , mb : 0.5 , mt : 1 } }
825+ >
826+ AI Summary
827+ </ Typography >
828+ < Tooltip
829+ title = {
830+ < Typography variant = "body2" sx = { { color : Colors . darkGray } } >
831+ AI Summary is generated using an AI tool that identifies
832+ the related paper and extracts its key content to create a
833+ concise summary.
834+ </ Typography >
835+ }
836+ arrow
837+ placement = "right"
838+ slotProps = { {
839+ tooltip : {
840+ sx : {
841+ bgcolor : Colors . white ,
842+ border : `1px solid ${ Colors . lightGray } ` ,
843+ boxShadow : 3 ,
844+ fontSize : "0.875rem" ,
845+ } ,
846+ } ,
847+ arrow : {
848+ sx : {
849+ color : Colors . white ,
850+ "&::before" : {
851+ border : `1px solid ${ Colors . lightGray } ` , // subtle arrow border
852+ } ,
853+ } ,
854+ } ,
855+ } }
856+ >
857+ < InfoOutlinedIcon
858+ fontSize = "small"
859+ sx = { {
860+ color : Colors . purple ,
861+ cursor : "pointer" ,
862+ } }
863+ />
864+ </ Tooltip >
865+ </ Box >
866+
867+ < ReadMoreText text = { aiSummary } />
868+ </ >
869+ ) }
811870
812871 < Box
813872 sx = { {
You can’t perform that action at this time.
0 commit comments