我想向包含两个图像的hangauts聊天客户端发送一条消息。
我使用以下代码:
{"cards":
[
{
"header":{"title":"TITOLO 1","subtitle":"Sottotitolo 1"},
"sections":
[
{"widgets":
[
{"image":{"imageUrl":"https://picsum.photos/200/200/?image=653"}},
{"buttons":
[
{"textButton":{"text":"SCELTA A1","onClick":{"action":{"actionMethodName":"carousel A1"}}}},
{"textButton":{"text":"SCELTA B1","onClick":{"openLink":{"url":"http://www.quix.it"}}}}
]
}
]
}
]
},
{
"header":{"title":"TITOLO 2","subtitle":"Sottotitolo 2"},
"sections":
[
{
"widgets":
[
{"image":{"imageUrl":"https://picsum.photos/200/200/?image=7"}},
{"buttons":
[
{"textButton":{"text":"SCELTA A2","onClick":{"action":{"actionMethodName":"carousel A2"}}}},
{"textButton":{"text":"SCELTA B2","onClick":{"openLink":{"url":"http://www.quix.it"}}}}
]
}
]
}
]
}
]
}
但是图像显示在另一个图像的下方
我希望看到它们水平对齐 如following image
您有什么建议吗?
答案 0 :(得分:0)
我认为不存在,并且有可能这样做。至于Slack,环聊聊天设计基于“垂直显示”。我们必须接受它并适应:)