你好,我正在编写一个文字聊天系统,但我遇到了一个问题:我无法让信息气泡在左侧和右侧对齐,并且当气泡内容超出容器宽度时,无法自动换行。

我已经尝试了很多 LayoutGroups、元素和 ContentSizeFitter 的组合,但都没有成功。

我希望你能提供帮助。感谢。

https://preview.redd.it/xdjr2f9it75h1.png?width=454&format=png&auto=webp&s=85b5be42585776b58ebb94d6362e29682af3d784

https://preview.redd.it/6mbdyi9it75h1.png?width=972&format=png&auto=webp&s=9f1f78b34ac3523c6e3ed35c5869c63abc200461