Action buttons on cards are abnormally sized

喜欢而已 提交于 2019-12-13 20:20:01

问题


I'm using the Bot framework Nodejs SDK to send a Hero card to present the user with a question and 3 options.

In the webchat channel, it would be like this:

var card = new builder.HeroCard(session)
.title("Please chose from below options:")
.buttons([
    builder.CardAction.imBack(session, "A green shirt", "A green shirt"),
    builder.CardAction.imBack(session, "A blue shirt", "A blue shirt"),
    builder.CardAction.imBack(session, "A red shirt", "A red shirt")
])

var msg = new builder.Message(session).attachments([card]);
builder.Prompts.text(session, msg);

The chat screen does display the options in the form of buttons but the size seems to be off.

How do I modify the code to render the buttons in appropriate sizes, side by side?

来源:https://stackoverflow.com/questions/53143997/action-buttons-on-cards-are-abnormally-sized

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!