This commit is contained in:
parent
9158edaa45
commit
51229b80c2
|
|
@ -97,27 +97,22 @@ 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',
|
||||||
bottom: '8px',
|
bottom: '8px',
|
||||||
right: '8px',
|
right: '8px',
|
||||||
width: '24px',
|
color: 'red', // 只保留文字颜色为红色
|
||||||
height: '24px',
|
|
||||||
backgroundColor: 'red',
|
|
||||||
borderRadius: '50%',
|
|
||||||
color: 'white',
|
|
||||||
display: 'flex',
|
|
||||||
alignItems: 'center',
|
|
||||||
justifyContent: 'center',
|
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
fontSize: '16px',
|
fontSize: '24px', // 字体稍微大一点,更容易看到
|
||||||
zIndex: 2,
|
zIndex: 2,
|
||||||
}}>
|
}}>
|
||||||
!
|
!
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</figure>
|
</figure>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue