Msteams-docs: Why adaptive card can't adapt to the width of message?

Created on 24 Jun 2019  路  6Comments  路  Source: MicrosoftDocs/msteams-docs

Hi team, why the adaptive can't adjust its width? I sent the card using the Bot, and it looks like this:
image

How do I adjust the adaptive card so that it can fill the blank space of the message likes the Hero Card?
image

teams-developer-support

All 6 comments

@XimenaWang Adaptive card width is managed by Microsoft Teams channel so that it renders well on all the device including mobile. Currently, there is no option to set the custom width to adaptive card.

@Gousia-MSFT - Hi , so how can I adjust the width to be wider? I tried it in Adaptive card Designer , it works online , but failed in my .NET service of Bot.
can you give me some suggestions? thanks in advance!
image

@XimenaWang Adaptive cards width is managed by the Microsoft Teams channel and the user has no control on it. Currently, there is no option to set the custom width for an adaptive card in Microsoft Teams.

This is really a terrible restriction. Surely developers at Microsoft used Slack internally prior to the release of Teams?

Please would you hire some of Slack's user experience specialists?

I have yet to see anyone from Microsoft provide their customers and users a reasonable explanation for this restriction. If Slack can do it, why on earth has Microsoft not been able to?

@stpeteparadox Hi stpeteparadox , it seems that the adaptive card still can't adapt the width, you can take a try with O365ConnectorCard(https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-reference#office-365-connector-card ), it works well for me ^_^

Thanks @XimenaWang . That's good to know.

My understanding is that O365ConnectorCard uses the legacy MessageCard format, but that Teams doesn't support the Hero Image property of that format. So in our use-case that won't work for us.

Also, we don't want to go down the road of using something that the Teams team doesn't appear to be paying much attention to, whereas AdaptiveCards seem to have active, if separate, development--though it's really essential the Teams team keeps AdaptiveCard implementation across Teams up-to-date with the latest standard!

Maybe Microsoft could just acquire Slack and Dropbox and we could all truly move on with our lives :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DamienDoumer picture DamienDoumer  路  7Comments

jonmill picture jonmill  路  6Comments

Navyjetfixer picture Navyjetfixer  路  4Comments

camiloxs picture camiloxs  路  6Comments

KyleSchroeder picture KyleSchroeder  路  5Comments