Skip to content

armgit / ente

Public Imported from GitHub
0

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

update elevation

AmanRajSinghMourya957fc37612dd
diff --git a/mobile/apps/photos/lib/ui/components/popup_menu/ente_popup_menu_button.dart b/mobile/apps/photos/lib/ui/components/popup_menu/ente_popup_menu_button.dart
index c7a0e91ab7..f9c3dde945 100644
--- a/mobile/apps/photos/lib/ui/components/popup_menu/ente_popup_menu_button.dart
+++ b/mobile/apps/photos/lib/ui/components/popup_menu/ente_popup_menu_button.dart
@@ -108,7 +108,7 @@ Future<T?> showEntePopupMenu<T>({
double menuWidth = 196.0,
double itemHeight = 52.0,
double borderRadius = 20.0,
- double elevation = 8.0,
+ double elevation = 0.0,
double screenPadding = 16.0,
double itemHorizontalPadding = 16.0,
double menuVerticalOffset = 12.0,
@@ -181,8 +181,10 @@ double _getMenuLeft({
}) {
const trailingAnchorOffset = 32.0;
final preferredLeft = tapX - menuWidth + trailingAnchorOffset;
- final maxLeft =
- math.max(screenPadding, overlayWidth - menuWidth - screenPadding);
+ final maxLeft = math.max(
+ screenPadding,
+ overlayWidth - menuWidth - screenPadding,
+ );
return math.min(math.max(screenPadding, preferredLeft), maxLeft);
}