Reputation: 49
When I add an Adaptive Card as an attachment to a message, the size is always limited to some amount, despite the message itself being much larger. Is there a way to specify the size of an Adaptive Card, or to force it to fill the width of the message?
Upvotes: 2
Views: 1556
Reputation: 800
The "Full Width" Adaptive Card functionality was released at some point and is now available. I haven't tested it, but it might help with this situation.
Microsoft has documented how it works:
Constructing full width cards
To make a full width Adaptive card the width object in
msteams
property in the card content must be set to Full. 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"
}
Upvotes: 1