Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add close button to reply preview widget

ashilkne22e159e1cc1
diff --git a/mobile/apps/photos/lib/ui/social/widgets/reply_preview_widget.dart b/mobile/apps/photos/lib/ui/social/widgets/reply_preview_widget.dart
index 083ce54320..ceb663583e 100644
--- a/mobile/apps/photos/lib/ui/social/widgets/reply_preview_widget.dart
+++ b/mobile/apps/photos/lib/ui/social/widgets/reply_preview_widget.dart
@@ -32,6 +32,7 @@ class ReplyPreviewWidget extends StatelessWidget {
),
child: IntrinsicHeight(
child: Row(
+ crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
width: 3,
@@ -41,35 +42,45 @@ class ReplyPreviewWidget extends StatelessWidget {
),
),
const SizedBox(width: 10),
- Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- mainAxisAlignment: MainAxisAlignment.start,
- mainAxisSize: MainAxisSize.min,
- children: [
- Text(
- replyingToUser.id == currentUserID
- ? 'Replying to you'
- : 'Replying to ${replyingToUser.displayName ?? replyingToUser.email}',
- style: textTheme.tiny.copyWith(
- color: colorScheme.textBase,
- height: 14 / 10.0,
- letterSpacing: -0.3,
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ mainAxisAlignment: MainAxisAlignment.start,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Text(
+ replyingToUser.id == currentUserID
+ ? 'Replying to you'
+ : 'Replying to ${replyingToUser.displayName ?? replyingToUser.email}',
+ style: textTheme.tiny.copyWith(
+ color: colorScheme.textBase,
+ height: 14 / 10.0,
+ letterSpacing: -0.3,
+ ),
+ maxLines: 1,
+ overflow: TextOverflow.ellipsis,
),
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- ),
- const SizedBox(height: 2),
- Text(
- replyingTo.data,
- style: textTheme.small.copyWith(
- color: colorScheme.textBase,
- height: 22 / 14.0,
- letterSpacing: -0.28,
+ const SizedBox(height: 2),
+ Text(
+ replyingTo.data,
+ style: textTheme.small.copyWith(
+ color: colorScheme.textBase,
+ height: 22 / 14.0,
+ letterSpacing: -0.28,
+ ),
+ maxLines: 1,
+ overflow: TextOverflow.ellipsis,
),
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- ),
- ],
+ ],
+ ),
+ ),
+ GestureDetector(
+ onTap: onDismiss,
+ child: Icon(
+ Icons.close,
+ size: 18,
+ color: colorScheme.textMuted,
+ ),
),
],
),
@@ -77,12 +88,3 @@ class ReplyPreviewWidget extends StatelessWidget {
);
}
}
-
-// GestureDetector(
-// onTap: onDismiss,
-// child: Icon(
-// Icons.close,
-// size: 18,
-// color: colorScheme.textMuted,
-// ),
-// ),