Skip to content

Commit 541d59e

Browse files
committed
frontend: optimize setup workflow in responsive mode
1 parent 0de3942 commit 541d59e

File tree

7 files changed

+26
-8
lines changed

7 files changed

+26
-8
lines changed

frontends/web/src/components/icon/combined.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
.bitbox02 {
1111
display: inline-block;
12-
max-width: 264px;
12+
max-width: min(264px, 80%);
1313
position: relative;
1414
right: -16px;
1515
}

frontends/web/src/routes/device/bitbox02/setup/name.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ export const SetDeviceName = ({
5454
withBottomBar
5555
verticallyCentered
5656
width="600px">
57-
<ViewHeader title={t('bitbox02Wizard.stepCreate.title')}>
57+
<ViewHeader
58+
small
59+
title={t('bitbox02Wizard.stepCreate.title')}
60+
>
5861
<p>{t('bitbox02Wizard.stepCreate.description')}</p>
5962
{missingSDCardWarning && (
6063
<Message className="m-bottom-half" type="warning">

frontends/web/src/routes/device/bitbox02/setup/pairing.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ export const Pairing = ({
6060
verticallyCentered
6161
withBottomBar
6262
width="670px">
63-
<ViewHeader title={t('bitbox02Wizard.pairing.title')}>
63+
<ViewHeader
64+
small
65+
title={t('bitbox02Wizard.pairing.title')}
66+
>
6467
{ pairingFailed ? (
6568
<Message key="pairingFailed" type="warning">
6669
{t('bitbox02Wizard.pairing.failed')}

frontends/web/src/routes/device/bitbox02/setup/password.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ export const SetPasswordWithBackup = ({
6565
verticallyCentered
6666
withBottomBar
6767
width="700px">
68-
<ViewHeader title={t('backup.restore.confirmTitle')}>
68+
<ViewHeader
69+
small
70+
title={t('backup.restore.confirmTitle')}
71+
>
6972
{ forBackup ? (
7073
<div>
7174
<MultilineMarkup tagName="div" markup={t('backup.restore.selectedBackup', {

frontends/web/src/routes/device/bitbox02/setup/restore.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ export const RestoreFromSDCardBackup = ({
4141
verticallyCentered
4242
withBottomBar
4343
width="700px">
44-
<ViewHeader title={t('backup.restore.confirmTitle')} />
44+
<ViewHeader
45+
small
46+
title={t('backup.restore.confirmTitle')}
47+
/>
4548
<ViewContent>
4649
<BackupsV2
4750
deviceID={deviceID}

frontends/web/src/routes/device/bitbox02/setup/success.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ export const RestoreFromSDCardSuccess = ({ onContinue }: TProps) => {
6666
verticallyCentered
6767
withBottomBar
6868
width="700px">
69-
<ViewHeader title={t('bitbox02Wizard.stepBackupSuccess.title')} />
69+
<ViewHeader
70+
small
71+
title={t('bitbox02Wizard.stepBackupSuccess.title')}
72+
/>
7073
<ViewContent textAlign="left">
7174
<p>
7275
{t('bitbox02Wizard.stepCreateSuccess.removeMicroSD')}
@@ -100,7 +103,10 @@ export const RestoreFromMnemonicSuccess = ({ onContinue }: TProps) => {
100103
verticallyCentered
101104
withBottomBar
102105
width="700px">
103-
<ViewHeader title={t('bitbox02Wizard.stepBackupSuccess.title')} />
106+
<ViewHeader
107+
small
108+
title={t('bitbox02Wizard.stepBackupSuccess.title')}
109+
/>
104110
<ViewContent textAlign="left">
105111
<p className="m-bottom-default">
106112
{t('bitbox02Wizard.stepBackupSuccess.fundsSafe')}

frontends/web/src/style/base.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ pre {
104104
background-color: var(--background-secondary);
105105
display: block;
106106
font-family: monospace;
107-
font-size: 2rem;
107+
font-size: var(--size-default);
108108
margin: 0 0 var(--space-default) 0;
109109
padding: var(--space-default);
110110
text-align: center;

0 commit comments

Comments
 (0)