This commit is contained in:
hailin 2025-04-09 00:18:14 +08:00
parent a5a4240c7d
commit a78875ea4b
1 changed files with 3 additions and 2 deletions

View File

@ -42,7 +42,7 @@ export const Card: React.FC<ArticleData> = (articleData) => {
className="cursor-pointer rounded border border-[#243c5a] overflow-hidden" className="cursor-pointer rounded border border-[#243c5a] overflow-hidden"
> >
<figure <figure
style={{ width: '100%', minHeight: "246px" }} style={{ width: '100%', minHeight: "246px", position: 'relative' }}
> >
<img src={ <img src={
( (
@ -55,7 +55,7 @@ export const Card: React.FC<ArticleData> = (articleData) => {
{/* 🔥 根据 model_parameter 来决定是否显示感叹号 */} {/* 只在 model_parameter 无效时显示感叹号 */}
{(!articleData.model_parameter) && ( {(!articleData.model_parameter) && (
<div style={{ <div style={{
position: 'absolute', position: 'absolute',
@ -71,6 +71,7 @@ export const Card: React.FC<ArticleData> = (articleData) => {
justifyContent: 'center', justifyContent: 'center',
fontWeight: 'bold', fontWeight: 'bold',
fontSize: '16px', fontSize: '16px',
zIndex: 2, // 保证盖在图片上面
}}> }}>
! !
</div> </div>