Skip to content

Commit bc9f7e9

Browse files
authored
Merge branch 'dev' into fix/ethereum
2 parents 482f15b + 0cffbc1 commit bc9f7e9

File tree

6 files changed

+24
-10
lines changed

6 files changed

+24
-10
lines changed

packages/browser-extension/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "browser-extension",
3-
"version": "0.0.37",
3+
"version": "0.0.40",
44
"main": "index.js",
55
"author": "yqrashawn <namy.19@gmail.com>",
66
"license": "MIT",

packages/popup/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"name": "helios-popup",
44
"type": "module",
5-
"version": "0.1.16",
5+
"version": "0.1.19",
66
"main": "index.js",
77
"author": "yqrashawn <namy.19@gmail.com>",
88
"license": "MIT",

packages/popup/src/locales/zh.js

+2
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ const zh = {
334334
priorityConnectionDes: '在连接至 DApp 时,Fluent 将会作为默认钱包',
335335
showTestnet: '显示测试网络',
336336
showTestnetDes: '开启后,可在网络列表中展示测试网络',
337+
openSidePanel: '侧边栏模式',
338+
closeSidePanel: '弹窗模式',
337339

338340
// About
339341
about: '关于',

packages/popup/src/pages/CreateSeed/BackupSeed.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {TitleNav} from '../../components'
99
import {request} from '../../utils'
1010
import {useCreatedPasswordGuard} from '../../hooks'
1111
import {RPC_METHODS, ROUTES} from '../../constants'
12+
import './index.css'
1213
const {CONFIRM_SEED_PHRASE} = ROUTES
1314
const {WALLET_GENERATE_MNEMONIC} = RPC_METHODS
1415

@@ -30,14 +31,14 @@ function BackupSeed() {
3031
<TitleNav title={t('newAccount')} />
3132
<main className="px-3 flex flex-col flex-1 justify-between pt-3">
3233
<div>
33-
<span className="inline-block ml-1 mb-1 text-gray-80">
34+
<span className="block ml-1 mb-1 text-gray-80">
3435
{t('backupSeedTitle')}
3536
</span>
36-
<span className="inline-block ml-1 text-xs text-gray-40">
37+
<span className="block ml-1 text-xs text-gray-40">
3738
<Trans i18nKey="backupSeedContent" />
3839
</span>
3940
<div
40-
className="mt-4 pt-3 px-3 bg-bg rounded-sm flex flex-wrap justify-between"
41+
className="seed-word-container mt-4 pt-3 px-3 bg-bg rounded-sm flex flex-wrap"
4142
id="mnemonicContainer"
4243
>
4344
{mnemonic.split(' ').map((word, index) => (

packages/popup/src/pages/CreateSeed/ConfirmSeed.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {request, shuffle, updateAddedNewAccount} from '../../utils'
1010
import {useCreatedPasswordGuard} from '../../hooks'
1111
import useLoading from '../../hooks/useLoading'
1212
import {RPC_METHODS, ROUTES} from '../../constants'
13+
import './index.css'
1314
const {WALLET_IMPORT_MNEMONIC, ACCOUNT_GROUP_TYPE} = RPC_METHODS
1415
const {HOME} = ROUTES
1516

@@ -107,15 +108,15 @@ function ConfirmSeed() {
107108
<TitleNav title={t('newAccount')} />
108109
<main className="px-3 pt-3 flex flex-col flex-1 justify-between">
109110
<div>
110-
<span className="inline-block ml-1 mb-1 text-gray-80">
111+
<span className="block ml-1 mb-1 text-gray-80">
111112
{t('confirmSeedTitle')}
112113
</span>
113-
<span className="inline-block ml-1 text-xs text-gray-40">
114+
<span className="block ml-1 text-xs text-gray-40">
114115
{t('confirmSeedContent')}
115116
</span>
116117
<div
117118
id="mnemonicContainer"
118-
className={`relative mt-4 px-3 pt-3 bg-bg rounded-sm flex flex-wrap justify-between z-10 ${
119+
className={`seed-word-container relative mt-4 px-3 pt-3 bg-bg rounded-sm flex flex-wrap z-10 ${
119120
mnemonicError
120121
? 'after:absolute after:inset-0 after:border-error after:border after:border-solid after:z-[-1]'
121122
: ''
@@ -138,9 +139,9 @@ function ConfirmSeed() {
138139
)}
139140
<div
140141
id="buttonArrayContainer"
141-
className={`${
142+
className={`seed-word-container ${
142143
mnemonicError ? 'mt-4' : 'mt-10'
143-
} px-3 pt-3 flex flex-wrap justify-between`}
144+
} px-3 pt-3 flex flex-wrap`}
144145
>
145146
{buttonArray.map((word, index) => (
146147
<Button
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.seed-word-container {
2+
justify-content: space-between;
3+
}
4+
5+
@media (min-width: 548px) {
6+
.seed-word-container {
7+
gap: 0 10px;
8+
justify-content: start;
9+
}
10+
}

0 commit comments

Comments
 (0)