11import React , { useMemo } from "react" ;
2- import { Col , Typography } from "antd " ;
2+ import { Grid , Typography } from "@mui/material " ;
33import CardBase from "../CardBase" ;
44import AletheiaButton from "../Button" ;
55import { useTranslation } from "next-i18next" ;
66import SourceListItemStyled from "./SourceListItem.style" ;
77import ReviewClassification from "../ClaimReview/ReviewClassification" ;
8- const { Paragraph } = Typography ;
98const DOMAIN_PROTOCOL_REGEX = / ^ ( h t t p s ? : \/ \/ ) ? ( w w w \. ) ? / ;
109
1110const SourceListItem = ( { source } ) => {
@@ -22,25 +21,28 @@ const SourceListItem = ({ source }) => {
2221
2322 return (
2423 < CardBase style = { { padding : "32px" } } >
25- < SourceListItemStyled
26- span = { 24 }
24+ < SourceListItemStyled container
25+ xs = { 12 }
2726 classification = { source . props . classification }
2827 >
2928 < h4 className = "title" > { title } </ h4 >
3029
31- < Paragraph
32- style = { { marginBottom : 0 } }
33- ellipsis = { {
34- rows : 4 ,
35- expandable : false ,
30+ < Typography
31+ variant = "body1"
32+ sx = { {
33+ display : "-webkit-box" ,
34+ overflow : "hidden" ,
35+ WebkitBoxOrient : "vertical" ,
36+ WebkitLineClamp : 4 ,
37+ textOverflow : "ellipsis" ,
3638 } }
3739 >
3840 < cite style = { { fontStyle : "normal" } } >
3941 < p className = "summary" > { source . props . summary } </ p >
4042 </ cite >
41- </ Paragraph >
43+ </ Typography >
4244
43- < Col className = "footer" >
45+ < Grid item className = "footer" >
4446 < ReviewClassification
4547 label = { t ( "sources:sourceReview" ) }
4648 classification = { source . props . classification }
@@ -53,7 +55,7 @@ const SourceListItem = ({ source }) => {
5355 >
5456 { t ( "sources:sourceCardButton" ) }
5557 </ AletheiaButton >
56- </ Col >
58+ </ Grid >
5759 </ SourceListItemStyled >
5860 </ CardBase >
5961 ) ;
0 commit comments