Extend Width of Hero Card or Office 365 Connector Card in Teams

Quinn Dumala 1 Reputation point
2022-12-08T04:41:13.59+00:00

I'm working on a Teams messaging extension that unfurls links to our domain. I'm using either a Hero card or an Office 365 connector card as I will need to display a preformatted text that includes a code block. Now the problem is since Hero cards and O365 cards seem to have fixed widths in Teams, some of the text I need to display overflows past the boundaries of the card.

I know I can set the width of Adaptive cards to full in Teams but using them isn't an option as they don't have support for HTML or preformatted text. Is there a way to widen Hero or Office 365 cards?

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,183 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,295 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 6,781 Reputation points Microsoft Vendor
    2022-12-09T06:12:43.163+00:00

    There doesn't seem to be any way to enlarge the width of Hero or Office 365 cards.

    Thanks,
    Prasad Das


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.