This commit is contained in:
Kakabay 2023-03-07 15:15:12 +05:00
commit 3a6d92cff2
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ const AsideNews = ({ title, date, img, category, id, video }: Props) => {
<Link to={`/news/${id}`} className="aside-news">
<div className="aside-news-wrapper">
<div className="aside-news-image">
{video && video.length > 0 ? (
{video && video.length > 53 ? (
<ReactPlayer
url={video}
controls

View File

@ -11,7 +11,7 @@ interface IProps {
const NewsArticleImg = ({ img, video }: IProps) => {
return (
<div className={"news-article-image"}>
{video && video.length > 0 ? (
{video && video.length > 53 ? (
<ReactPlayer url={video} controls width="100%" height="100%" />
) : (
<LazyLoadImage