[英]Horizontal carousel in hangouts chat
我想向包含兩張圖片的 hangauts-chat 客戶端發送一條消息。
我使用這段代碼:
{"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"}}}}
]
}
]
}
]
}
]
}
但圖像顯示在另一個下方
我希望看到它們水平對齊,如下圖所示
你有什么建議嗎?
我認為現在沒有而且將來也有可能這樣做。 至於 Slack,Hangouts Chat 設計基於“垂直顯示”。 我們必須接受它並適應它:)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.