5

Adaptive cards are fairly narrow in most channels - in web chat, for example. Is there any way to force the card to show the same width as the standard messages?

Jason Sypkens
  • 168
  • 1
  • 10
  • 1
    have you got a solution for this issue? I need to set `width` and `height` of the card! – Taher May 29 '19 at 13:18
  • The question is answered here. please take a look https://stackoverflow.com/a/66378082/6673637. All you need to do is add this. `{..., "type": "AdaptiveCard", "msTeams": { "width": "full" }, "body": [...]}` – Ravikumar B May 09 '22 at 06:46

1 Answers1

2

that's a pretty old question, however, many people come up with similar things frequently.

The answer is no, you can not change that. All visual aspects, width, height, font-styles, colors etc are controlled by the "host app" the host app is the channel eg MS Teams you are posting your card to.

See here for details: https://learn.microsoft.com/en-us/adaptive-cards/rendering-cards/host-config

Only the hosting app can define things like width.

Tim Cadenbach
  • 1,446
  • 1
  • 9
  • 21