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(
|
child: Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 8)
|
padding: EdgeInsets.symmetric(horizontal: 8)
|
||||||
.copyWith(top: isGrouped ? 0 : 8),
|
.copyWith(top: isGrouped ? 0 : 8),
|
||||||
child: Row(
|
child: Wrap(
|
||||||
mainAxisSize: .min,
|
verticalDirection: .up,
|
||||||
spacing: 6,
|
spacing: 6,
|
||||||
|
crossAxisAlignment: .center,
|
||||||
children: [
|
children: [
|
||||||
Flexible(child: child),
|
child,
|
||||||
if (child is! MessageRenderer)
|
if (child is! MessageRenderer)
|
||||||
Flexible(
|
Timestamp(event.timestamp),
|
||||||
flex: 0,
|
|
||||||
child: 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/reaction_row.dart";
|
||||||
import "package:nexus/widgets/timestamp.dart";
|
import "package:nexus/widgets/timestamp.dart";
|
||||||
import "package:nexus/widgets/url_preview.dart";
|
import "package:nexus/widgets/url_preview.dart";
|
||||||
import "package:timeago/timeago.dart";
|
|
||||||
import "package:nexus/widgets/event_preview.dart";
|
import "package:nexus/widgets/event_preview.dart";
|
||||||
import "package:nexus/widgets/players/video.dart";
|
import "package:nexus/widgets/players/video.dart";
|
||||||
import "package:nexus/widgets/players/audio.dart";
|
import "package:nexus/widgets/players/audio.dart";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue