Reflow attachment message actions
This commit is contained in:
1 parent
4bee45c8e0
commit
3b01b1c240
2 files changed
+14
-5
No files matched your search
@@ -455,17 +455,25 @@ private fun MessageBubble(
|
||||
Text("重新发送附件")
|
||||
}
|
||||
}
|
||||
Row(horizontalArrangement = Arrangement.spacedBy(6.dp)) {
|
||||
TextButton(onClick = { onOpenAttachment(message.id) }) {
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
horizontalArrangement = Arrangement.spacedBy(8.dp),
|
||||
) {
|
||||
TextButton(onClick = { onOpenAttachment(message.id) }, modifier = Modifier.weight(1f)) {
|
||||
Text("打开")
|
||||
}
|
||||
TextButton(onClick = { onDownloadAttachment(message.id) }) {
|
||||
TextButton(onClick = { onDownloadAttachment(message.id) }, modifier = Modifier.weight(1f)) {
|
||||
Text("下载")
|
||||
}
|
||||
TextButton(onClick = { onCopyAttachmentName(message.text) }) {
|
||||
}
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
horizontalArrangement = Arrangement.spacedBy(8.dp),
|
||||
) {
|
||||
TextButton(onClick = { onCopyAttachmentName(message.text) }, modifier = Modifier.weight(1f)) {
|
||||
Text("复制文件名")
|
||||
}
|
||||
TextButton(onClick = { attachmentDetailsExpanded = !attachmentDetailsExpanded }) {
|
||||
TextButton(onClick = { attachmentDetailsExpanded = !attachmentDetailsExpanded }, modifier = Modifier.weight(1f)) {
|
||||
Text(if (attachmentDetailsExpanded) "收起详情" else "查看详情")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user