Skip to content

armgit / ente

Public Imported from GitHub
0

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

[auth] Fix bottom bar for iPad

Neeraj Guptaaa8d910a0b7e
diff --git a/auth/lib/ui/components/bottom_action_bar_widget.dart b/auth/lib/ui/components/bottom_action_bar_widget.dart
index 8623396e9d..ed25cf7308 100644
--- a/auth/lib/ui/components/bottom_action_bar_widget.dart
+++ b/auth/lib/ui/components/bottom_action_bar_widget.dart
@@ -1,3 +1,5 @@
+import 'dart:math';
+
import 'package:ente_auth/models/code.dart';
import 'package:ente_auth/theme/ente_theme.dart';
import 'package:ente_auth/ui/components/actions_bar_widget.dart';
@@ -37,9 +39,12 @@ class BottomActionBarWidget extends StatelessWidget {
final bottomPadding = MediaQuery.of(context).padding.bottom;
final widthOfScreen = MediaQuery.of(context).size.width;
final colorScheme = getEnteColorScheme(context);
- final double leftRightPadding = widthOfScreen > restrictedMaxWidth
- ? (widthOfScreen - restrictedMaxWidth) / 2
- : 0;
+ final double leftRightPadding = min(
+ widthOfScreen > restrictedMaxWidth
+ ? (widthOfScreen - restrictedMaxWidth) / 2
+ : 0,
+ 20,
+ );
return Container(
decoration: BoxDecoration(
color: backgroundColor ?? colorScheme.backgroundElevated2,