From ecd3ac029545001079b9a62f801b223ef7a20c1a Mon Sep 17 00:00:00 2001 From: dab246 Date: Thu, 6 Nov 2025 00:05:05 +0700 Subject: [PATCH] TF-4050 fix: cannot preview html file --- .../email/presentation/widgets/html_attachment_previewer.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/features/email/presentation/widgets/html_attachment_previewer.dart b/lib/features/email/presentation/widgets/html_attachment_previewer.dart index b5d6391ac..452e2360c 100644 --- a/lib/features/email/presentation/widgets/html_attachment_previewer.dart +++ b/lib/features/email/presentation/widgets/html_attachment_previewer.dart @@ -69,6 +69,9 @@ class _HtmlAttachmentPreviewerState extends State { child: Center( child: Container( margin: const EdgeInsets.symmetric(vertical: _verticalMargin), + constraints: BoxConstraints( + maxHeight: MediaQuery.of(context).size.height, + ), color: Colors.white, child: ResponsiveWidget( responsiveUtils: widget.responsiveUtils,