chore: some fixes for activity message overlay not matching underlying message (#2834)
This commit is contained in:
parent
3359cfe25d
commit
e5e7f40220
2 changed files with 5 additions and 10 deletions
|
|
@ -130,13 +130,6 @@ class ActivityPlanMessage extends StatelessWidget {
|
|||
AppConfig.borderRadius,
|
||||
),
|
||||
),
|
||||
padding:
|
||||
event.messageType == MessageTypes.Image
|
||||
? EdgeInsets.zero
|
||||
: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 8,
|
||||
),
|
||||
constraints: const BoxConstraints(
|
||||
maxWidth: FluffyThemes.columnWidth * 1.5,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -80,9 +80,11 @@ class OverlayMessage extends StatelessWidget {
|
|||
previousEvent!.senderId == event.senderId &&
|
||||
previousEvent!.originServerTs.sameEnvironment(event.originServerTs);
|
||||
|
||||
final textColor = ownMessage
|
||||
? ThemeData.dark().colorScheme.onPrimary
|
||||
: theme.colorScheme.onSurface;
|
||||
final textColor = event.isActivityMessage
|
||||
? ThemeData.light().colorScheme.onPrimary
|
||||
: ownMessage
|
||||
? ThemeData.dark().colorScheme.onPrimary
|
||||
: theme.colorScheme.onSurface;
|
||||
|
||||
final linkColor = theme.brightness == Brightness.light
|
||||
? theme.colorScheme.primary
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue