mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
fix(pwa): keep the update banner and auth forms usable when space is tight
Addresses two CodeRabbit findings on the update banner change. The banner row could not fit the icon, message and Reload button on a narrow viewport at large text zoom, and the root clips overflow, so the button could be unreachable. Let the row wrap; the button drops to its own centered line only when the content does not fit. The login, register and setup containers centred their forms with no scrolling, so once the banner reduced the shell height a tall form was clipped and its submit button could not be reached. Make the container the scroll area and centre the form wrapper with min-h-full, matching the pattern already used in GlobalSchedules and PromptsTab.
This commit is contained in:
1 parent
2996758198
commit
1ce5a9ba2d
4 files changed
+7
-7
No files matched your search
@@ -19,7 +19,7 @@ export function PwaUpdatePrompt() {
|
||||
aria-live="polite"
|
||||
className="w-full shrink-0 bg-primary pt-safe text-primary-foreground"
|
||||
>
|
||||
<div className="flex items-center justify-center gap-3 px-4 py-2">
|
||||
<div className="flex flex-wrap items-center justify-center gap-3 px-4 py-2">
|
||||
<RefreshCw className="h-4 w-4 shrink-0" aria-hidden="true" />
|
||||
<span className="text-sm font-medium">
|
||||
A new version of OpenCode Manager is available.
|
||||
|
||||
@@ -80,8 +80,8 @@ export function Login() {
|
||||
const hasCredentials = config.enabledProviders.includes('credentials')
|
||||
|
||||
return (
|
||||
<div className="h-full flex flex-col items-center justify-center bg-gradient-to-br from-background via-background to-background p-4">
|
||||
<div className="w-full max-w-sm space-y-6">
|
||||
<div className="h-full overflow-y-auto bg-gradient-to-br from-background via-background to-background p-4">
|
||||
<div className="mx-auto flex min-h-full w-full max-w-sm flex-col justify-center space-y-6">
|
||||
<div className="flex flex-col items-center space-y-2">
|
||||
<img
|
||||
src={theme === 'light' ? "/opencode-wordmark-light.svg" : "/opencode-wordmark-dark.svg"}
|
||||
|
||||
@@ -53,8 +53,8 @@ export function Register() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="h-full flex flex-col items-center justify-center bg-gradient-to-br from-background via-background to-background p-4">
|
||||
<div className="w-full max-w-sm space-y-6">
|
||||
<div className="h-full overflow-y-auto bg-gradient-to-br from-background via-background to-background p-4">
|
||||
<div className="mx-auto flex min-h-full w-full max-w-sm flex-col justify-center space-y-6">
|
||||
<div className="flex flex-col items-center space-y-2">
|
||||
<img
|
||||
src={theme === 'light' ? "/opencode-wordmark-light.svg" : "/opencode-wordmark-dark.svg"}
|
||||
|
||||
@@ -46,8 +46,8 @@ export function Setup() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="h-full flex flex-col items-center justify-center bg-gradient-to-br from-background via-background to-background p-4">
|
||||
<div className="w-full max-w-sm space-y-6">
|
||||
<div className="h-full overflow-y-auto bg-gradient-to-br from-background via-background to-background p-4">
|
||||
<div className="mx-auto flex min-h-full w-full max-w-sm flex-col justify-center space-y-6">
|
||||
<div className="flex flex-col items-center space-y-2">
|
||||
<img
|
||||
src={theme === 'light' ? "/opencode-wordmark-light.svg" : "/opencode-wordmark-dark.svg"}
|
||||
|
||||
Reference in new issue
Block a user