0.6.1.0
This commit is contained in:
@@ -987,6 +987,37 @@ function renderPersonCard(
|
||||
${renderInfoRow('母亲', member.motherId ? getMemberName(member.motherId) : '')}
|
||||
</div>
|
||||
` : ''}
|
||||
|
||||
${member.tags && member.tags.length > 0 ? `
|
||||
<div class="info-group">
|
||||
<div class="info-group-title">标签</div>
|
||||
<div style="display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px;">
|
||||
${member.tags.map(tag => `<span style="background: #f5f0e6; color: #8b4513; padding: 2px 8px; border-radius: 10px; font-size: 9pt;">${tag}</span>`).join('')}
|
||||
</div>
|
||||
</div>
|
||||
` : ''}
|
||||
|
||||
${member.bio ? `
|
||||
<div class="info-group">
|
||||
<div class="info-group-title">个人简介</div>
|
||||
<div style="font-size: 9pt; color: #333; line-height: 1.5; margin-top: 4px; text-align: justify;">
|
||||
${member.bio}
|
||||
</div>
|
||||
</div>
|
||||
` : ''}
|
||||
|
||||
${member.stories && member.stories.length > 0 ? `
|
||||
<div class="info-group">
|
||||
<div class="info-group-title">家族故事</div>
|
||||
${member.stories.map(story => `
|
||||
<div style="margin-top: 6px; padding: 6px; background: #faf8f5; border-left: 3px solid #d4c4a8;">
|
||||
<div style="font-weight: bold; font-size: 10pt; color: #8b4513;">${story.title}</div>
|
||||
${story.date ? `<div style="font-size: 8pt; color: #999; margin-top: 2px;">${story.date}</div>` : ''}
|
||||
<div style="font-size: 9pt; color: #333; line-height: 1.4; margin-top: 4px;">${story.content.length > 200 ? story.content.substring(0, 200) + '...' : story.content}</div>
|
||||
</div>
|
||||
`).join('')}
|
||||
</div>
|
||||
` : ''}
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user