AdaptiveCards icon indicating copy to clipboard operation
AdaptiveCards copied to clipboard

[Designer] Invalid Teams Preview for Action Button Alignments

Open cagrimunyas opened this issue 4 years ago • 2 comments

ActionSet > horizontal Alignment property renders incorrect preview for Teams. There is no alignment option of the buttons in Teams while on designer it can be set and preview reflects the alignment according to the setting while on Teams the buttons (actions) are always stacked to the left

cagrimunyas avatar Jun 20 '22 10:06 cagrimunyas

@cagrimunyas could you please provide sample card template and data (if applicable) so we can investigate?:) and the host config being used?:)

are you using the AC designer or Teams' Designer?

beervoley avatar Jun 20 '22 20:06 beervoley

Hello @beervoley , You can find the card content, previews from designers and actual teams version below

Sample Card json : { "type": "AdaptiveCard", "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.4", "body": [ { "type": "ActionSet", "actions": [ { "type": "Action.OpenUrl", "title": "Button1", "url": "www.microsoft.com" }, { "type": "Action.OpenUrl", "title": "Button2", "url": "portal.azure.com" } ], "horizontalAlignment": "Center" } ] }

adaptivecards.io Teams preview:

image

Teams Developer Portal Card Designer Teams Preview: image

When sent to teams client:

image

cagrimunyas avatar Oct 05 '22 23:10 cagrimunyas