gpt4 book ai didi

microsoft-teams - 为什么 Microsoft Teams 中自适应卡片的宽度会水平挤压消息

转载 作者:行者123 更新时间:2023-12-04 14:11:01 29 4
gpt4 key购买 nike

从 Flow 向 Microsoft Teams 发布自适应卡片时,该消息似乎被压缩到大约 50% 的宽度。它不会扩展以适应 Teams 中的消息容器。
Squished Adaptive Card

最佳答案

“全宽”自适应卡片功能在某个时候发布,现在可用。
微软已经记录了它是如何工作的:

Constructing full width cards

To make a full width Adaptive card thewidth object in msteams property in the card content must be set toFull. In addition, your app must include the following elements:

{
"type": "AdaptiveCard",
"body": [{
"type": "Container",
"items": [{
"type": "TextBlock",
"text": "Digest card",
"size": "Large",
"weight": "Bolder"
}]
}],

"msteams": {
"width": "Full"
},
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.2"
}

关于microsoft-teams - 为什么 Microsoft Teams 中自适应卡片的宽度会水平挤压消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64375989/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com