Skip to content

armgit / ente

Public Imported from GitHub
0

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

Hide header in highlighted comment overlay

ashilkn327b79595ac7
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 09b98fd8fa..b34c453580 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,14 +160,14 @@ 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: child,
+ child: Transform.scale(
+ scale: 0.95 + (0.05 * value),
+ alignment: widget.isOwnComment
+ ? Alignment.topRight
+ : Alignment.topLeft,
+ child: child,
+ ),
+ // child: child,
);
},
child: Padding(
@@ -175,6 +175,7 @@ class _CommentBubbleWidgetState extends State<CommentBubbleWidget> {
child: _buildCommentContent(
showActionsCapsule: false,
showActionsPopup: true,
+ showHeader: false,
),
),
),
@@ -188,6 +189,7 @@ class _CommentBubbleWidgetState extends State<CommentBubbleWidget> {
required bool showActionsCapsule,
bool showActionsPopup = false,
bool includePadding = true,
+ bool showHeader = true,
}) {
return Padding(
padding: EdgeInsets.only(
@@ -200,15 +202,18 @@ class _CommentBubbleWidgetState extends State<CommentBubbleWidget> {
? CrossAxisAlignment.end
: CrossAxisAlignment.start,
children: [
- Padding(
- padding: EdgeInsets.only(
- right: widget.isOwnComment ? 18 : 0,
- ),
- child: _Header(
- isOwnComment: widget.isOwnComment,
- user: widget.user,
- createdAt: widget.comment.createdAt,
- currentUserID: widget.currentUserID,
+ Opacity(
+ opacity: showHeader ? 1 : 0,
+ child: 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),