Action Card Teams wrap text button

Brass Contributor

hello, I have a bot in teams that sends an action card with options on buttons, the problem is that the texts of the buttons are cut off:

 

rosrene_0-1643344178078.pngrosrene_1-1643344213810.png

hello, I have a bot in teams that sends an action card with options on buttons, the problem is that their texts are cut off as seen in the images

 

I do not use adaptive card because they limit me to only 6 buttons and I require more, on the other hand it does not have the functionality to navigate the options to the sides

I need the text to be complete in several lines or have a tooltip that shows the complete text

 

The code I use to send the action card is:

 

var herocard = new HeroCard();
herocard.Title = answers[0].Answer;

List<CardAction> buttons = new List<CardAction>();
var sortedPrompts = prompts.OrderBy(r => r.DisplayText);
foreach (var items in sortedPrompts)
{
buttons.Add(new CardAction()
{
Type = ActionTypes.MessageBack,
Title = items.DisplayText,
DisplayText = items.DisplayText,
Text = items.DisplayText,
Value = items.DisplayText,
});
}
herocard.Buttons = buttons;

var response = stepContext.Context.Activity.CreateReply();
response.Attachments = new List<Microsoft.Bot.Schema.Attachment>() { herocard.ToAttachment() };
await stepContext.Context.SendActivityAsync(response);

 

I welcome your comments and help.

20 Replies
@rosrene-There doesn't seem to be a way to do it yet.