Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improve display of lock screen, closes #4606 #4716

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/app/components/request-password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function RequestPassword({ title, caption, onSuccess }: RequestPasswordPr
>
{title}
</styled.h1>
<styled.p textStyle={['label.01', 'heading.05']} mb="space.06">
<styled.p textStyle={['label.01', 'heading.05']} mb="space.06" textAlign="left">
{(isRunning && waitingMessage) || caption}
</styled.p>
</>
Expand All @@ -78,7 +78,7 @@ export function RequestPassword({ title, caption, onSuccess }: RequestPasswordPr
>
Your password
</styled.h2>
<Stack gap="space.04" alignItems="center">
<Stack gap="space.04" alignItems="center" minHeight="100px">
<styled.input
_focus={{ border: 'focus' }}
autoCapitalize="off"
Expand All @@ -102,7 +102,7 @@ export function RequestPassword({ title, caption, onSuccess }: RequestPasswordPr
value={password}
width="100%"
/>
{error && <ErrorLabel>{error}</ErrorLabel>}
{error && <ErrorLabel width="100%">{error}</ErrorLabel>}
</Stack>
<LeatherButton
data-testid={SettingsSelectors.UnlockWalletBtn}
Expand Down
4 changes: 3 additions & 1 deletion src/app/components/secret-key/two-column.layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export function TwoColumnLayout({
gap="space.07"
mx={['auto', 'space.03', 'space.03', 'space.03']}
>
<styled.div maxWidth="440px">{leftColumn}</styled.div>
<styled.div width="390px" textAlign="left">
{leftColumn}
</styled.div>
</Flex>

<Flex
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function PasswordField({ strengthResult, isDisabled }: PasswordFieldProps
strengthResult={strengthResult}
/>
<Flex alignItems="center">
<Caption mx="space.04">Password strength:</Caption>
<Caption mr="space.02">Password strength:</Caption>
<Caption>{field.value ? strengthText : '—'}</Caption>
</Flex>
</>
Expand Down
Loading