From 048cf3d0259e69822d9efad1c716a0f1ded97db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= Date: Wed, 12 Nov 2025 13:53:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=BC=98=E5=8C=96=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=A1=86=E6=A0=B7=E5=BC=8F=E4=BB=A5=E5=8F=8A=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0tooltip=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/projectHomeNew/v2/index.jsx | 10 +++++----- src/forge/Main/projectHomeNew/v2/index.scss | 17 +++++++++++++++++ 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/forge/Main/projectHomeNew/v2/index.jsx b/src/forge/Main/projectHomeNew/v2/index.jsx index a3ca74c8..39cc1d38 100644 --- a/src/forge/Main/projectHomeNew/v2/index.jsx +++ b/src/forge/Main/projectHomeNew/v2/index.jsx @@ -1,6 +1,6 @@ import React, { useEffect, useState } from "react"; import axios from "axios"; -import { Divider, Input, Pagination, Popover, Spin } from "antd"; +import { Divider, Input, Pagination, Popover, Spin, Tooltip } from "antd"; import { Link } from "react-router-dom"; import Nodata from "../../../Nodata"; import { getImageUrl } from "../../../../common/UrlTool"; @@ -183,7 +183,7 @@ function ProjectHomePage(props) { placeholder="输入名称关键字" size="middle" onSearch={(value) => { setPage(1); setSearch(value); }} - className="mlat" + className="mlat custom-search" style={{ width: "320px", marginLeft: "auto" }} allowClear /> @@ -234,16 +234,16 @@ function ProjectHomePage(props) {
{i.lesson_url && }
-
{i.name}
+
{i.name}
{/* 项目标签 */} {i.topics &&
{/* {i.author && i.author.login === "gh_mirrors" && i.topics && !i.topics.length && 华中科技大学} */} - {i.topics.slice(0, 2).map(item => {item.name})} + {i.topics.slice(0, 2).map(item => {item.name})}
}
{i.description &&
- {i.description} + {i.description}
} })} diff --git a/src/forge/Main/projectHomeNew/v2/index.scss b/src/forge/Main/projectHomeNew/v2/index.scss index ca81f4f8..9f5cfc90 100644 --- a/src/forge/Main/projectHomeNew/v2/index.scss +++ b/src/forge/Main/projectHomeNew/v2/index.scss @@ -103,6 +103,23 @@ position: relative; top: -140px; z-index: 3; + + .custom-search { + .ant-input-search-icon svg{ + display: none; + } + + .ant-input-search-icon { + position: relative; + + &::after { + content: "\e817"; // 替换为您的图标 Unicode + font-family: "iconfont" !important; + font-size: 14px; + color:#2149d4; + } + } + } } .cate_list {