Skip to content

armgit / ente

Public Imported from GitHub
0

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

[auth] Reduce extend ratio for compact mode

Neeraj Gupta9933e18ba548
diff --git a/auth/lib/ui/code_widget.dart b/auth/lib/ui/code_widget.dart
index e9ac384889..f3249e9cf5 100644
--- a/auth/lib/ui/code_widget.dart
+++ b/auth/lib/ui/code_widget.dart
@@ -266,12 +266,13 @@ class _CodeWidgetState extends State<CodeWidget> {
child: clippedCard(l10n),
);
}
- double slideSpace = isCompactMode ? 4 : 8;
+ final double slideSpace = isCompactMode ? 4 : 8;
+ final double extendRatio = isCompactMode ? 0.70 : 0.90;
return Slidable(
key: ValueKey(widget.code.hashCode),
endActionPane: ActionPane(
- extentRatio: 0.90,
+ extentRatio: extendRatio,
motion: const ScrollMotion(),
children: [
SizedBox(width: slideSpace),