Skip to content

Commit

Permalink
[mob][photos] Horizontal padding
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenspriem committed Jun 4, 2024
1 parent 1af5008 commit 85449fa
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions mobile/lib/ui/viewer/file/file_icons_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import "package:photos/generated/l10n.dart";
import "package:photos/models/api/collection/user.dart";
import 'package:photos/models/file/trash_file.dart';
import 'package:photos/theme/colors.dart';
import "package:photos/theme/ente_theme.dart";
import 'package:photos/ui/sharing/user_avator_widget.dart';

class ThumbnailPlaceHolder extends StatelessWidget {
Expand Down Expand Up @@ -153,12 +154,15 @@ class VideoOverlayDuration extends StatelessWidget {
);
} else {
final String formattedDuration = _getFormattedDuration(duration!);
onDarkBackground = Text(
formattedDuration,
style: Theme.of(context).textTheme.titleSmall!.copyWith(
color: Colors.white,
fontSize: size, // Default font size is 14
),
onDarkBackground = Padding(
padding: const EdgeInsets.symmetric(horizontal: 1),
child: Text(
formattedDuration,
style: getEnteTextTheme(context).small.copyWith(
color: Colors.white,
fontSize: size, // Default font size is 14
),
),
);
}

Expand Down

0 comments on commit 85449fa

Please sign in to comment.