mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-20 23:22:05 +08:00
chore(feishu-notify): modify notification card (#11656)
refactor(feishu-notify): simplify issue card layout by removing redundant elements Remove unnecessary div elements and consolidate title display into the card header
This commit is contained in:
parent
f571dd7af0
commit
aeabc28451
@ -91,23 +91,6 @@ function createIssueCard(issueData) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
elements: [
|
elements: [
|
||||||
{
|
|
||||||
tag: 'div',
|
|
||||||
text: {
|
|
||||||
tag: 'lark_md',
|
|
||||||
content: `**🐛 New GitHub Issue #${issueNumber}**`
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
tag: 'hr'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
tag: 'div',
|
|
||||||
text: {
|
|
||||||
tag: 'lark_md',
|
|
||||||
content: `**📝 Title:** ${issueTitle}`
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
tag: 'div',
|
tag: 'div',
|
||||||
text: {
|
text: {
|
||||||
@ -158,7 +141,7 @@ function createIssueCard(issueData) {
|
|||||||
template: 'blue',
|
template: 'blue',
|
||||||
title: {
|
title: {
|
||||||
tag: 'plain_text',
|
tag: 'plain_text',
|
||||||
content: '🆕 Cherry Studio - New Issue'
|
content: `#${issueNumber} - ${issueTitle}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user