This commit is contained in:
parent
ebc828ce78
commit
b0003b6a54
|
|
@ -52,6 +52,33 @@ export const Card: React.FC<ArticleData> = (articleData) => {
|
||||||
) || defaultImage
|
) || defaultImage
|
||||||
|
|
||||||
} alt={articleData.main_title} style={{ width: '100%', marginBottom: '8px' }} />
|
} alt={articleData.main_title} style={{ width: '100%', marginBottom: '8px' }} />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{/* 🔥 根据 model_parameter 来决定是否显示感叹号 */}
|
||||||
|
{(!articleData.model_parameter) && (
|
||||||
|
<div style={{
|
||||||
|
position: 'absolute',
|
||||||
|
bottom: '8px',
|
||||||
|
right: '8px',
|
||||||
|
width: '24px',
|
||||||
|
height: '24px',
|
||||||
|
backgroundColor: 'red',
|
||||||
|
borderRadius: '50%',
|
||||||
|
color: 'white',
|
||||||
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
|
justifyContent: 'center',
|
||||||
|
fontWeight: 'bold',
|
||||||
|
fontSize: '16px',
|
||||||
|
}}>
|
||||||
|
!
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</figure>
|
</figure>
|
||||||
<div className='px-2 lg:px-6' style={{ height: '214px' }} >
|
<div className='px-2 lg:px-6' style={{ height: '214px' }} >
|
||||||
<h3
|
<h3
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue