Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix highlighted own comment's horizontal alignment

ashilkn5e2908815ed4
diff --git a/mobile/apps/photos/lib/ui/social/widgets/comment_bubble_widget.dart b/mobile/apps/photos/lib/ui/social/widgets/comment_bubble_widget.dart
index 736da2ebdf..09b98fd8fa 100644
--- a/mobile/apps/photos/lib/ui/social/widgets/comment_bubble_widget.dart
+++ b/mobile/apps/photos/lib/ui/social/widgets/comment_bubble_widget.dart
@@ -160,18 +160,22 @@ class _CommentBubbleWidgetState extends State<CommentBubbleWidget> {
builder: (context, value, child) {
return Opacity(
opacity: value,
- child: Transform.scale(
- scale: 0.95 + (0.05 * value),
- alignment: widget.isOwnComment
- ? Alignment.topRight
- : Alignment.topLeft,
- child: child,
- ),
+ // child: Transform.scale(
+ // scale: 0.95 + (0.05 * value),
+ // alignment: widget.isOwnComment
+ // ? Alignment.topRight
+ // : Alignment.topLeft,
+ // child: child,
+ // ),
+ child: child,
);
},
- child: _buildCommentContent(
- showActionsCapsule: false,
- showActionsPopup: true,
+ child: Padding(
+ padding: EdgeInsets.only(right: widget.isOwnComment ? 16 : 0),
+ child: _buildCommentContent(
+ showActionsCapsule: false,
+ showActionsPopup: true,
+ ),
),
),
),