🐛 Fix some bugs in attachment upload sheet

This commit is contained in:
2025-09-27 15:51:26 +08:00
parent 0c729db639
commit 54560ad5d8
3 changed files with 40 additions and 367 deletions

View File

@@ -127,16 +127,16 @@ class ChatInput extends HookConsumerWidget {
children: [
if (attachments.isNotEmpty)
SizedBox(
height: 280,
height: 180,
child: ListView.separated(
padding: EdgeInsets.symmetric(horizontal: 12),
scrollDirection: Axis.horizontal,
itemCount: attachments.length,
itemBuilder: (context, idx) {
return SizedBox(
height: 280,
width: 280,
width: 180,
child: AttachmentPreview(
isCompact: true,
item: attachments[idx],
progress: attachmentProgress['chat-upload']?[idx],
onRequestUpload: () => onUploadAttachment(idx),