问题
I was looking around to change card
width
created by Google Chatbot but as far I see there is no any config within Chatbot API.
Is it possible to set an attribute somehow?
My current Card
class
;
class Card {
constructor(title, subtitle, imgUrl) {
this.sections = [];
this.cardObject = {
"cards": [
{
"header": {"title": title, "subtitle": subtitle, "imageUrl": imgUrl},
"sections": this.sections
}
]
};
}
}
and those are Hangouts Chat APIs I've looked for now but no information about customise the width
value;
- Design guidelines
- Card Formatting Messages
- Creating interactive cards
回答1:
Unfortunately, it is not possible to change the width of a card, per the broad Cards overview.
来源:https://stackoverflow.com/questions/56022932/is-it-possible-to-change-card-width-of-google-chatbot