TF-3416 Update avatar by sender
This commit is contained in:
@@ -95,17 +95,18 @@ class HtmlTemplate {
|
|||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.placeholder-icon {
|
.circle {
|
||||||
width: 32px;
|
width: 40px;
|
||||||
height: 32px;
|
height: 40px;
|
||||||
|
border-radius: 50%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
background-color: #f2f2f2;
|
background: linear-gradient(to bottom, #a8e4d1, #56c2a6);
|
||||||
border-radius: 50%;
|
|
||||||
color: #d9534f;
|
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
color: white;
|
||||||
|
text-transform: uppercase;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
import 'package:core/data/model/preview_attachment.dart';
|
import 'package:core/data/model/preview_attachment.dart';
|
||||||
|
import 'package:core/presentation/extensions/string_extension.dart';
|
||||||
import 'package:core/utils/app_logger.dart';
|
import 'package:core/utils/app_logger.dart';
|
||||||
import 'package:core/utils/html/html_template.dart';
|
import 'package:core/utils/html/html_template.dart';
|
||||||
import 'package:core/utils/html/html_utils.dart';
|
import 'package:core/utils/html/html_utils.dart';
|
||||||
@@ -36,7 +37,7 @@ class PreviewEmlFileUtils {
|
|||||||
<!-- Email Header -->
|
<!-- Email Header -->
|
||||||
<div class="email-header">
|
<div class="email-header">
|
||||||
<!-- Placeholder icon -->
|
<!-- Placeholder icon -->
|
||||||
<div class="placeholder-icon">?</div>
|
<div class="circle">${(senderName ?? senderEmailAddress ?? '?').firstLetterToUpperCase}</div>
|
||||||
|
|
||||||
<!-- Email information -->
|
<!-- Email information -->
|
||||||
<div class="email-info">
|
<div class="email-info">
|
||||||
|
|||||||
Reference in New Issue
Block a user