The minimalistic document archiving platform.
fix(mobile): stack alert dialog buttons vertically (#1480)
Corentin Thomassetf81bee753e10
diff --git a/.changeset/good-animals-allow.md b/.changeset/good-animals-allow.mdnew file mode 100644index 00000000..967392f5--- /dev/null+++ b/.changeset/good-animals-allow.md@@ -0,0 +1,5 @@+---+'@papra/mobile': patch+---++Stack the alert dialog buttons vertically to avoid line breaks in long button labels on small screens.diff --git a/apps/mobile/src/modules/ui/components/alert-dialog.tsx b/apps/mobile/src/modules/ui/components/alert-dialog.tsxindex f911d70d..d3eb36e1 100644--- a/apps/mobile/src/modules/ui/components/alert-dialog.tsx+++ b/apps/mobile/src/modules/ui/components/alert-dialog.tsx@@ -96,11 +96,10 @@ function createStyles({ themeColors }: { themeColors: ThemeColors }) {lineHeight: 20,},buttonContainer: {- flexDirection: 'row',+ flexDirection: 'column',gap: 12,},button: {- flex: 1,paddingVertical: 12,paddingHorizontal: 16,borderRadius: 8,@@ -111,6 +110,7 @@ function createStyles({ themeColors }: { themeColors: ThemeColors }) {fontSize: 16,fontWeight: '600',color: themeColors.primaryForeground,+ textAlign: 'center',},cancelButton: {backgroundColor: themeColors.secondaryBackground,