π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Constrain latest comment overlay width
ashilkn0b8b98ad1577
diff --git a/mobile/apps/photos/lib/ui/social/widgets/file_social_overlay.dart b/mobile/apps/photos/lib/ui/social/widgets/file_social_overlay.dartindex 914e3c38e0..a8f9f95308 100644--- a/mobile/apps/photos/lib/ui/social/widgets/file_social_overlay.dart+++ b/mobile/apps/photos/lib/ui/social/widgets/file_social_overlay.dart@@ -387,67 +387,62 @@ class _FileSocialOverlayState extends State<FileSocialOverlay> {return const SizedBox.shrink();}- return LayoutBuilder(- builder: (context, constraints) {- final latestComment = _latestComment;- final latestCommentAuthor = _latestCommentAuthor;- return Row(- crossAxisAlignment: CrossAxisAlignment.end,+ final latestComment = _latestComment;+ final latestCommentAuthor = _latestCommentAuthor;+ return Row(+ mainAxisSize: MainAxisSize.min,+ crossAxisAlignment: CrossAxisAlignment.end,+ children: [+ if (latestComment != null && latestCommentAuthor != null)+ Padding(+ padding: const EdgeInsets.only(right: 4, bottom: 4),+ child: _LatestCommentPill(+ comment: latestComment,+ author: latestCommentAuthor,+ maxWidth: MediaQuery.sizeOf(context).width * 0.6,+ currentUserID: widget.currentUserID!,+ onTap: () => _openComments(comment: latestComment),+ ),+ ),+ Column(+ mainAxisSize: MainAxisSize.min,children: [- if (latestComment != null && latestCommentAuthor != null)- Padding(- padding: const EdgeInsets.only(right: 4, bottom: 4),- child: _LatestCommentPill(- comment: latestComment,- author: latestCommentAuthor,- maxWidth: constraints.maxWidth * 0.6,- currentUserID: widget.currentUserID!,- onTap: () => _openComments(comment: latestComment),- ),- ),- Column(- mainAxisSize: MainAxisSize.min,- children: [- Tooltip(- message: AppLocalizations.of(context).like,- child: GestureDetector(- onLongPress: _showLikes,- child: SizedBox.square(- dimension: _socialControlsSize,- child: IconButton(- padding: _socialIconPadding,- style: IconButton.styleFrom(- overlayColor: WidgetStateColor.transparent,- ),- onPressed: _toggleReaction,- icon: Icon(- _hasLiked- ? EnteIcons.likeFilled- : EnteIcons.likeStroke,- color: _hasLiked ? _likedColor : Colors.white,- size: _socialIconSize,- ),- ),+ Tooltip(+ message: AppLocalizations.of(context).like,+ child: GestureDetector(+ onLongPress: _showLikes,+ child: SizedBox.square(+ dimension: _socialControlsSize,+ child: IconButton(+ padding: _socialIconPadding,+ style: IconButton.styleFrom(+ overlayColor: WidgetStateColor.transparent,),- ),- ),- const SizedBox(height: 8),- Tooltip(- message: AppLocalizations.of(context).comments,- child: SizedBox.square(- dimension: _socialControlsSize,- child: IconButton(- padding: _socialIconPadding,- onPressed: _openComments,- icon: _CommentBadgeIcon(count: _commentCount),+ onPressed: _toggleReaction,+ icon: Icon(+ _hasLiked ? EnteIcons.likeFilled : EnteIcons.likeStroke,+ color: _hasLiked ? _likedColor : Colors.white,+ size: _socialIconSize,),),),- ],+ ),+ ),+ const SizedBox(height: 8),+ Tooltip(+ message: AppLocalizations.of(context).comments,+ child: SizedBox.square(+ dimension: _socialControlsSize,+ child: IconButton(+ padding: _socialIconPadding,+ onPressed: _openComments,+ icon: _CommentBadgeIcon(count: _commentCount),+ ),+ ),),],- );- },+ ),+ ],);}}