TF-2667 Fix width size inline image in email view after send email
This commit is contained in:
@@ -1587,7 +1587,7 @@ class ComposerController extends BaseController with DragDropFileMixin {
|
||||
if (responsiveUtils.isMobile(context)) {
|
||||
maxWithEditor = maxWith - 40;
|
||||
} else {
|
||||
maxWithEditor = maxWith - 120;
|
||||
maxWithEditor = maxWith - 70;
|
||||
}
|
||||
|
||||
consumeState(_localImagePickerInteractor.execute());
|
||||
@@ -2000,8 +2000,15 @@ class ComposerController extends BaseController with DragDropFileMixin {
|
||||
|
||||
void onLocalFileDropZoneListener({
|
||||
required BuildContext context,
|
||||
required DropDoneDetails details
|
||||
required DropDoneDetails details,
|
||||
required double maxWidth
|
||||
}) async {
|
||||
if (responsiveUtils.isMobile(context)) {
|
||||
maxWithEditor = maxWidth - 40;
|
||||
} else {
|
||||
maxWithEditor = maxWidth - 70;
|
||||
}
|
||||
|
||||
final listFileInfo = await onDragDone(context: context, details: details);
|
||||
|
||||
if (listFileInfo.isEmpty && context.mounted) {
|
||||
|
||||
Reference in New Issue
Block a user