Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix tap not getting registered on the parts of the capsule widgt where it is outside it's parent

ashilknb0673a119ccc
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 dc99ec5b23..736da2ebdf 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
@@ -187,7 +187,7 @@ class _CommentBubbleWidgetState extends State<CommentBubbleWidget> {
}) {
return Padding(
padding: EdgeInsets.only(
- right: widget.isOwnComment ? 24 : 0,
+ right: widget.isOwnComment ? 6 : 0,
top: includePadding ? 8 : 0,
bottom: includePadding ? 8 : 0,
),
@@ -196,30 +196,39 @@ class _CommentBubbleWidgetState extends State<CommentBubbleWidget> {
? CrossAxisAlignment.end
: CrossAxisAlignment.start,
children: [
- _Header(
- isOwnComment: widget.isOwnComment,
- user: widget.user,
- createdAt: widget.comment.createdAt,
- currentUserID: widget.currentUserID,
+ Padding(
+ padding: EdgeInsets.only(
+ right: widget.isOwnComment ? 18 : 0,
+ ),
+ child: _Header(
+ isOwnComment: widget.isOwnComment,
+ user: widget.user,
+ createdAt: widget.comment.createdAt,
+ currentUserID: widget.currentUserID,
+ ),
),
const SizedBox(height: 12),
Padding(
padding: EdgeInsets.only(left: widget.isOwnComment ? 0 : 24),
child: Stack(
- clipBehavior: Clip.none,
children: [
- _CommentBubble(
- comment: widget.comment,
- isOwnComment: widget.isOwnComment,
- isLoadingParent: _isLoadingParent,
- parentComment: _parentComment,
- currentUserID: widget.currentUserID,
- userResolver: widget.userResolver,
+ Padding(
+ padding: showActionsCapsule
+ ? const EdgeInsets.only(right: 16, bottom: 17)
+ : EdgeInsets.zero,
+ child: _CommentBubble(
+ comment: widget.comment,
+ isOwnComment: widget.isOwnComment,
+ isLoadingParent: _isLoadingParent,
+ parentComment: _parentComment,
+ currentUserID: widget.currentUserID,
+ userResolver: widget.userResolver,
+ ),
),
if (!_isLoadingReactions && showActionsCapsule)
Positioned(
- right: -16,
- bottom: -17,
+ right: 0,
+ bottom: 0,
child: CommentActionsCapsule(
isLiked: _isLiked,
onLikeTap: _toggleLike,