TF-3267 Tunning width size of HTML viewer

This commit is contained in:
Dat PHAM HOANG
2025-01-21 14:42:30 +07:00
committed by Dat H. Pham
parent ac91cae0db
commit 78600f09e9
2 changed files with 2 additions and 2 deletions
@@ -39,5 +39,5 @@ extension AttachmentExtension on Attachment {
DownloadTaskId get downloadTaskId => DownloadTaskId(blobId!.value);
bool get isHTMLFile => type?.isPDFFile(fileName: name) ?? false;
bool get isHTMLFile => type?.isHTMLFile(fileName: name) ?? false;
}
@@ -52,7 +52,7 @@ class HtmlAttachmentPreviewer extends StatelessWidget {
responsiveUtils: responsiveUtils,
desktop: _buildHtmlViewerWith(
context,
width: constraints.maxWidth * 0.4,
width: constraints.maxWidth * 0.8,
height: constraints.maxHeight - _verticalMargin * 2
),
tablet: _buildHtmlViewerWith(