From b9212c14de969c9d7ec79dd0d732ca01fae1f1ed Mon Sep 17 00:00:00 2001 From: callmeyan Date: Fri, 27 Dec 2024 19:28:10 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20fixed:=20=E4=BF=AE=E5=A4=8D=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E8=AF=A6=E6=83=85=E5=AE=BD=E5=BA=A6=E4=B8=8D=E8=B6=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/index.scss | 7 +++++++ src/components/icons/index.tsx | 6 ++++++ src/pages/news/index.tsx | 10 +++++----- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/assets/index.scss b/src/assets/index.scss index b7b010d..4fad8d0 100644 --- a/src/assets/index.scss +++ b/src/assets/index.scss @@ -71,6 +71,13 @@ body { padding-right: 0; padding-left: 0; } + .news-detail{ + video{ + width: 100%; + max-width: 100%; + max-height: 400px; + } + } } .news-detail-content-container{ margin-right: -30px; diff --git a/src/components/icons/index.tsx b/src/components/icons/index.tsx index 4c80765..79de615 100644 --- a/src/components/icons/index.tsx +++ b/src/components/icons/index.tsx @@ -90,6 +90,12 @@ export const IconAddText = ({style, className}: IconProps) => ( ) +export const IconVideo = ({style, className}: IconProps) => ( + + + +) export const IconAddImage = ({style, className}: IconProps) => ( setActiveNews(undefined)} >
-
+
{activeNews?.title}
{activeNews?.media_name} @@ -104,7 +104,7 @@ export default function NewsIndex() {
-
+
setActiveNews(undefined)}/> @@ -113,7 +113,7 @@ export default function NewsIndex() { handleCheckChange(activeNews!.id)} - >选择 + >选择
@@ -134,7 +134,7 @@ export default function NewsIndex() {