💄 Optimize attachment list width in post

This commit is contained in:
2024-12-29 22:34:17 +08:00
parent 5c7929e618
commit e236b7f98b
2 changed files with 33 additions and 33 deletions

View File

@ -253,6 +253,7 @@ class PostItem extends StatelessWidget {
bordered: true,
gridded: true,
maxHeight: showFullPost ? null : 480,
minWidth: 640,
fit: showFullPost ? BoxFit.cover : BoxFit.contain,
padding: const EdgeInsets.symmetric(horizontal: 12),
),
@ -930,6 +931,7 @@ class _PostQuoteContent extends StatelessWidget {
child: AttachmentList(
data: child.preload!.attachments!,
maxHeight: 360,
minWidth: 640,
fit: BoxFit.contain,
gridded: true,
padding: const EdgeInsets.symmetric(horizontal: 12),