Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Number mnemonic words on ConfirmMnemonic.
Browse files Browse the repository at this point in the history
  • Loading branch information
sproxet committed Jul 25, 2022
1 parent cd5cd08 commit 2d4c3e6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
25 changes: 14 additions & 11 deletions src/renderer/components/Setup/ConfirmMnemonic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@

<div class="content">
<template v-for="(_, n) in 24">
<input v-if="hiddenWordPositions.includes(n)"
:class="['mnemonic-word', 'hidden', isVerified ? 'verified' : 'unverified']"
:id="`hidden-word-${n}`"
type="text"
v-model="newWords[n]"
spellcheck="false"
:tabindex="hiddenWordPositions.indexOf(n) + 1"
/>
<span v-else class="mnemonic-word visible" :id="`visible-word-${n}`">
{{ newWords[n] }}
</span>
<div class="mnemonic-word">
<span class="n">{{ n < 9 ? `0${n + 1}` : n + 1 }}</span>
<input v-if="hiddenWordPositions.includes(n)"
:class="['word', 'hidden', isVerified ? 'verified' : 'unverified']"
:id="`hidden-word-${n}`"
type="text"
v-model="newWords[n]"
spellcheck="false"
:tabindex="hiddenWordPositions.indexOf(n) + 1"
/>
<span v-else class="word visible" :id="`visible-word-${n}`">
{{ newWords[n] }}
</span>
</div>
</template>
</div>

Expand Down
11 changes: 10 additions & 1 deletion src/renderer/styles/_mnemonic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
}

.mnemonic-word {
height: 1.2em;
-webkit-appearance: none;
border: none;
padding: 0 !important;
Expand All @@ -27,9 +28,17 @@

background-color: inherit;

&.hidden {
.hidden {
width: 80px;

border: none;
outline: none;
-webkit-appearance: none;
font: {
family: sans-serif;
weight: bold;
}

border-bottom: {
style: dashed;
color: var(--color-text-primary);
Expand Down

0 comments on commit 2d4c3e6

Please sign in to comment.