Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Fix UI of element depicting extra photos in placeholder shared with link

ashilkn8367e4d4e108
diff --git a/mobile/lib/ui/sharing/show_images_prevew.dart b/mobile/lib/ui/sharing/show_images_prevew.dart
index fc68f66843..1f1574c7df 100644
--- a/mobile/lib/ui/sharing/show_images_prevew.dart
+++ b/mobile/lib/ui/sharing/show_images_prevew.dart
@@ -5,6 +5,7 @@ import "package:figma_squircle/figma_squircle.dart";
import "package:flutter/material.dart";
import "package:photos/core/constants.dart";
import "package:photos/models/file/file.dart";
+import "package:photos/theme/ente_theme.dart";
import "package:photos/ui/viewer/file/thumbnail_widget.dart";
class LinkPlaceholder extends StatelessWidget {
@@ -246,16 +247,17 @@ class LinkPlaceholder extends StatelessWidget {
top: 290,
left: 270,
child: Stack(
+ alignment: Alignment.center,
children: [
Center(
child: Container(
- height: boxHeight + 3,
- width: boxHeight + 3,
+ height: boxHeight + 1,
+ width: boxHeight + 1,
decoration: ShapeDecoration(
color: const Color.fromRGBO(129, 129, 129, 0.1),
shape: SmoothRectangleBorder(
borderRadius: SmoothBorderRadius(
- cornerRadius: 15.0,
+ cornerRadius: 12.5,
cornerSmoothing: 1.0,
),
),
@@ -272,14 +274,12 @@ class LinkPlaceholder extends StatelessWidget {
height: boxHeight,
width: boxHeight,
color: const Color.fromRGBO(255, 255, 255, 1),
+ padding: const EdgeInsets.all(4),
child: Center(
- child: Text(
- "+" "${length - 3}",
- style: const TextStyle(
- fontWeight: FontWeight.bold,
- fontSize: 24,
- color: Color.fromRGBO(0, 0, 0, 1),
- fontFamily: 'Inter',
+ child: FittedBox(
+ child: Text(
+ "+" "${length - 3}",
+ style: getEnteTextTheme(context).h3Bold,
),
),
),