1

我想向包含两个图像的 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"}}}}
             ]
            }
          ]
       }
      ]
    }
  ]
}

但图像显示在另一个下方

发信息

我希望看到它们水平对齐,如下图所示

你有什么建议吗?

4

1 回答 1

0

我不认为有并且将有任何可能这样做。至于 Slack,Hangouts Chat 的设计是基于“垂直展示”的。我们必须接受并适应:)

于 2020-01-17T09:58:53.617 回答