TF-4075 Jump to attachments list position on mobile
(cherry picked from commit cd2ca1ec3c5b5160820823905d9f0183536b07e3)
This commit is contained in:
@@ -109,7 +109,7 @@ class AttachmentItemWidget extends StatelessWidget {
|
||||
);
|
||||
|
||||
return TMailContainerWidget(
|
||||
height: 36,
|
||||
height: EmailUtils.attachmentItemHeight,
|
||||
borderRadius: 8,
|
||||
border: Border.all(color: AppColor.m3Tertiary70),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8),
|
||||
|
||||
@@ -65,7 +65,7 @@ class EmailAttachmentsWidget extends StatelessWidget {
|
||||
bool isMobile = responsiveUtils.isMobile(context);
|
||||
|
||||
final hideButton = SizedBox(
|
||||
height: 36,
|
||||
height: EmailUtils.attachmentItemHeight,
|
||||
width: isMobile ? double.infinity : null,
|
||||
child: ConfirmDialogButton(
|
||||
label: AppLocalizations.of(context).hideAll,
|
||||
@@ -105,7 +105,9 @@ class EmailAttachmentsWidget extends StatelessWidget {
|
||||
return AttachmentItemWidget(
|
||||
attachment: attachment,
|
||||
imagePaths: imagePaths,
|
||||
margin: const EdgeInsets.only(top: 8),
|
||||
margin: const EdgeInsets.only(
|
||||
top: EmailUtils.attachmentItemSpacing,
|
||||
),
|
||||
downloadAttachmentAction: downloadAttachmentAction,
|
||||
viewAttachmentAction: viewAttachmentAction,
|
||||
singleEmailControllerTag: singleEmailControllerTag,
|
||||
@@ -113,10 +115,10 @@ class EmailAttachmentsWidget extends StatelessWidget {
|
||||
}).toList(),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
const SizedBox(height: EmailUtils.attachmentItemSpacing),
|
||||
if (hiddenItemsCount > 0)
|
||||
SizedBox(
|
||||
height: 36,
|
||||
height: EmailUtils.attachmentItemHeight,
|
||||
width: double.infinity,
|
||||
child: ConfirmDialogButton(
|
||||
label: AppLocalizations.of(context).moreAttachments(
|
||||
@@ -200,7 +202,7 @@ class EmailAttachmentsWidget extends StatelessWidget {
|
||||
}).toList(),
|
||||
if (hiddenItemsCount > 0)
|
||||
SizedBox(
|
||||
height: 36,
|
||||
height: EmailUtils.attachmentItemHeight,
|
||||
child: ConfirmDialogButton(
|
||||
label: '+$hiddenItemsCount',
|
||||
backgroundColor: Theme.of(context).colorScheme.outline.withValues(
|
||||
|
||||
Reference in New Issue
Block a user