From 6f4703e814723ba8301435cba58f989c9aea3d3f Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 31 Oct 2024 10:42:35 -0500 Subject: [PATCH] Fix width handling for deactivated screen (#5810) --- bskyweb/templates/base.html | 1 + src/screens/Deactivated.tsx | 227 +++++++++++++++++------------------- web/index.html | 1 + 3 files changed, 112 insertions(+), 117 deletions(-) diff --git a/bskyweb/templates/base.html b/bskyweb/templates/base.html index 59cf39d02c..4c02805e3b 100644 --- a/bskyweb/templates/base.html +++ b/bskyweb/templates/base.html @@ -67,6 +67,7 @@ display: flex; flex: 1 0 auto; min-height: 100%; + width: 100%; } #splash { position: fixed; diff --git a/src/screens/Deactivated.tsx b/src/screens/Deactivated.tsx index 2d14b18dbd..36b96cacd7 100644 --- a/src/screens/Deactivated.tsx +++ b/src/screens/Deactivated.tsx @@ -106,124 +106,117 @@ export function Deactivated() { return ( - - - - - - - - - - Welcome back! - - - - You previously deactivated @{currentAccount?.handle}. - - - - - You can reactivate your account to continue logging in. Your - profile and posts will be visible to other users. - - - - - - - - - {error && ( - - - {error} - - )} - - - - - - - {hasOtherAccounts ? ( - <> - - Or, log into one of your other accounts. - - - - ) : ( - <> - - Or, continue with another account. - - - - )} - + style={[ + a.h_full, + a.w_full, + a.px_2xl, + { + paddingTop: isWeb ? 64 : insets.top + 16, + paddingBottom: isWeb ? 64 : insets.bottom, + }, + ]} + contentContainerStyle={[ + a.w_full, + a.flex_row, + a.justify_center, + {borderWidth: 0}, + ]}> + + + + + + + Welcome back! + + + + You previously deactivated @{currentAccount?.handle}. + + + + + You can reactivate your account to continue logging in. Your + profile and posts will be visible to other users. + + + + + + + + + {error && ( + + + {error} + + )} + + + + + + + {hasOtherAccounts ? ( + <> + + Or, log into one of your other accounts. + + + + ) : ( + <> + + Or, continue with another account. + + + + )} diff --git a/web/index.html b/web/index.html index 7b29597bb7..28b3a3e3d7 100644 --- a/web/index.html +++ b/web/index.html @@ -72,6 +72,7 @@ display: flex; flex: 1 0 auto; min-height: 100%; + width: 100%; } #splash { position: fixed;