Skip to content

armgit / ente

Public Imported from GitHub
0

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

file info name fixed width

laurenspriemb3bff83a4013
diff --git a/mobile/lib/ui/viewer/file_details/file_info_face_widget.dart b/mobile/lib/ui/viewer/file_details/file_info_face_widget.dart
index 845cc68260..fdcb073e9e 100644
--- a/mobile/lib/ui/viewer/file_details/file_info_face_widget.dart
+++ b/mobile/lib/ui/viewer/file_details/file_info_face_widget.dart
@@ -71,8 +71,8 @@ class _FileInfoFaceWidgetState extends State<FileInfoFaceWidget> {
: _onPlusIconTap
: _routeToPersonOrClusterPage,
child: Container(
- height: 60,
- width: 60,
+ height: 68,
+ width: 68,
decoration: ShapeDecoration(
shape: RoundedRectangleBorder(
borderRadius: const BorderRadius.all(
@@ -88,8 +88,8 @@ class _FileInfoFaceWidgetState extends State<FileInfoFaceWidget> {
),
child: ClipRRect(
child: SizedBox(
- width: 60,
- height: 60,
+ width: 68,
+ height: 68,
child: ClipPath(
clipper: ShapeBorderClipper(
shape: ContinuousRectangleBorder(
@@ -119,41 +119,46 @@ class _FileInfoFaceWidgetState extends State<FileInfoFaceWidget> {
final List<Widget> faceInfo = [];
if (widget.person != null) {
faceInfo.add(
- Text(
- widget.person!.data.isIgnored
- ? '(' + S.of(context).ignored + ')'
- : widget.person!.data.name.trim(),
- style: Theme.of(context).textTheme.bodySmall,
- overflow: TextOverflow.ellipsis,
- maxLines: 1,
+ SizedBox(
+ width: 68,
+ child: Center(
+ child: Text(
+ widget.person!.data.isIgnored
+ ? '(' + S.of(context).ignored + ')'
+ : widget.person!.data.name.trim(),
+ style: Theme.of(context).textTheme.bodySmall,
+ overflow: TextOverflow.ellipsis,
+ maxLines: 1,
+ ),
+ ),
),
);
}
if (kDebugMode) {
faceInfo.add(
Text(
- 'S: ${widget.face.score.toStringAsFixed(3)}(I)',
+ 'S:${widget.face.score.toStringAsFixed(2)}(I)',
style: Theme.of(context).textTheme.bodySmall,
maxLines: 1,
),
);
faceInfo.add(
Text(
- 'B: ${widget.face.blur.toStringAsFixed(0)}(I)',
+ 'B:${widget.face.blur.toStringAsFixed(0)}(I)',
style: Theme.of(context).textTheme.bodySmall,
maxLines: 1,
),
);
faceInfo.add(
Text(
- 'D: ${widget.face.detection.getFaceDirection().toDirectionString().substring(0, 3)}(I)',
+ 'D:${widget.face.detection.getFaceDirection().toDirectionString().substring(0, 3)}(I)',
style: Theme.of(context).textTheme.bodySmall,
maxLines: 1,
),
);
faceInfo.add(
Text(
- 'Si: ${widget.face.detection.faceIsSideways().toString()}(I)',
+ 'Si:${widget.face.detection.faceIsSideways().toString()}(I)',
style: Theme.of(context).textTheme.bodySmall,
maxLines: 1,
),