TF-2540 Fix selected Email address at to/cc/bcc fields are moving too close to the bottom of input field
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -56,7 +56,9 @@ class RecipientTagItemWidget extends StatelessWidget {
|
||||
if (PlatformInfo.isWeb)
|
||||
Flexible(
|
||||
child: Padding(
|
||||
padding: const EdgeInsetsDirectional.only(top: 8),
|
||||
padding: EdgeInsetsDirectional.only(
|
||||
top: PlatformInfo.isWebMobile ? 0 : 8
|
||||
),
|
||||
child: InkWell(
|
||||
onTap: () => isCollapsed
|
||||
? onShowFullAction?.call(prefix)
|
||||
@@ -140,7 +142,7 @@ class RecipientTagItemWidget extends StatelessWidget {
|
||||
),
|
||||
if (isCollapsed)
|
||||
TMailButtonWidget.fromText(
|
||||
margin: RecipientTagItemWidgetStyle.counterMargin,
|
||||
margin: _counterMargin,
|
||||
text: '+$countRecipients',
|
||||
onTapActionCallback: () => onShowFullAction?.call(prefix),
|
||||
borderRadius: RecipientTagItemWidgetStyle.radius,
|
||||
@@ -155,6 +157,16 @@ class RecipientTagItemWidget extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
|
||||
EdgeInsetsGeometry? get _counterMargin {
|
||||
if (PlatformInfo.isWebMobile) {
|
||||
return RecipientTagItemWidgetStyle.webMobileCounterMargin;
|
||||
} else if (PlatformInfo.isWeb) {
|
||||
return RecipientTagItemWidgetStyle.webCounterMargin;
|
||||
} else {
|
||||
return RecipientTagItemWidgetStyle.counterMargin;
|
||||
}
|
||||
}
|
||||
|
||||
int get countRecipients => currentListEmailAddress.length - collapsedListEmailAddress.length;
|
||||
|
||||
Color _getTagBackgroundColor() {
|
||||
|
||||
Reference in New Issue
Block a user