forked from Nexus/nexus
better wrapping behavior for timestamps on state events
This commit is contained in:
parent
cfab803fa0
commit
57f9498aa3
2 changed files with 5 additions and 8 deletions
|
|
@ -197,16 +197,14 @@ class const EventRenderer(
|
|||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 8)
|
||||
.copyWith(top: isGrouped ? 0 : 8),
|
||||
child: Row(
|
||||
mainAxisSize: .min,
|
||||
child: Wrap(
|
||||
verticalDirection: .up,
|
||||
spacing: 6,
|
||||
crossAxisAlignment: .center,
|
||||
children: [
|
||||
Flexible(child: child),
|
||||
child,
|
||||
if (child is! MessageRenderer)
|
||||
Flexible(
|
||||
flex: 0,
|
||||
child: Timestamp(event.timestamp),
|
||||
),
|
||||
Timestamp(event.timestamp),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ import "package:nexus/widgets/message_image.dart";
|
|||
import "package:nexus/widgets/reaction_row.dart";
|
||||
import "package:nexus/widgets/timestamp.dart";
|
||||
import "package:nexus/widgets/url_preview.dart";
|
||||
import "package:timeago/timeago.dart";
|
||||
import "package:nexus/widgets/event_preview.dart";
|
||||
import "package:nexus/widgets/players/video.dart";
|
||||
import "package:nexus/widgets/players/audio.dart";
|
||||
|
|
|
|||
Loading…
Reference in a new issue