Add max height to attachments

This commit is contained in:
2024-07-12 22:50:52 +08:00
parent 156e6f1075
commit df7348e117
2 changed files with 17 additions and 8 deletions

View File

@ -270,10 +270,17 @@ class _PostItemState extends State<PostItem> {
right: 16,
left: 16,
),
AttachmentList(
parentId: widget.item.alias,
attachmentsId: item.attachments ?? List.empty(),
divided: true,
Container(
width: MediaQuery.of(context).size.width,
constraints: const BoxConstraints(
maxHeight: 720,
maxWidth: 640,
),
child: AttachmentList(
parentId: widget.item.alias,
attachmentsId: item.attachments ?? List.empty(),
divided: true,
),
),
if (widget.isShowReply && widget.isReactable)
PostQuickAction(