Skip to content

Commit

Permalink
adjust text width, move volume button slightly right
Browse files Browse the repository at this point in the history
  • Loading branch information
mertalev committed Nov 13, 2024
1 parent d39c823 commit 4233e82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mobile/lib/widgets/asset_viewer/formatted_duration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ class FormattedDuration extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SizedBox(
width: data.inHours > 0 ? 62 : 41, // use a fixed width to prevent jitter
width: data.inHours > 0 ? 64 : 43, // use a fixed width to prevent jitter
child: Text(
_formatDuration(data),
style: const TextStyle(
fontSize: 14.0,
color: whiteOpacity75,
fontWeight: FontWeight.normal,
),
textAlign: TextAlign.center,
),
);
}
Expand Down
2 changes: 2 additions & 0 deletions mobile/lib/widgets/asset_viewer/video_mute_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class VideoMuteButton extends ConsumerWidget {
onPressed: () =>
ref.read(videoPlayerControlsProvider.notifier).toggleMute(),
color: Colors.white,
padding: const EdgeInsets.all(0),
alignment: Alignment.centerRight,
);
}
}

0 comments on commit 4233e82

Please sign in to comment.