Skip to content

Commit ace38cb

Browse files
committed
resolved comments
1 parent 79ac019 commit ace38cb

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

export/index.template.html

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,8 @@
7878
#passphrase-form-div {
7979
text-align: center;
8080
max-width: 500px;
81-
margin: 0 1em;
8281
}
8382
#passphrase-form-div p {
84-
color: #555;
8583
font-size: 0.9em;
8684
margin-bottom: 1.5em;
8785
}
@@ -91,20 +89,17 @@
9189
width: auto;
9290
word-wrap: none;
9391
margin: 0.5em 0 0.25em 0;
94-
color: #444;
9592
}
9693
#passphrase-form-div input[type="password"] {
9794
width: 100%;
98-
padding: 0.6em;
95+
padding: 0.5em 0;
9996
font-size: 1em;
100-
border: 1px solid #ccc;
101-
border-radius: 4px;
97+
border: none;
98+
border-bottom: 1px solid #666;
10299
box-sizing: border-box;
103100
margin-bottom: 0.5em;
104-
}
105-
#passphrase-form-div input[type="password"]:focus {
101+
background-color: transparent;
106102
outline: none;
107-
border-color: #666;
108103
}
109104
#encrypt-and-export {
110105
color: white;
@@ -123,7 +118,7 @@
123118
#passphrase-error {
124119
color: #c0392b;
125120
font-size: 0.9em;
126-
margin: 0.5em 0;
121+
margin-bottom: 0.5em;
127122
text-align: left;
128123
}
129124
#passphrase-strength {
@@ -144,7 +139,6 @@
144139
}
145140
#passphrase-strength-text {
146141
font-size: 0.8em;
147-
color: #666;
148142
}
149143
.strength-weak {
150144
background-color: #e74c3c;
@@ -264,6 +258,7 @@ <h2>Message log</h2>
264258
</div>
265259
<span id="passphrase-strength-text"></span>
266260
</div>
261+
<br />
267262
<label for="export-passphrase-confirm">Confirm Passphrase</label>
268263
<input
269264
type="password"
@@ -1727,6 +1722,7 @@ <h2>Message log</h2>
17271722
errorMsg.innerText = message;
17281723
errorMsg.classList.remove("hidden");
17291724
errorMsg.style.display = "block";
1725+
errorMsg.style.color = "c0392b";
17301726
}
17311727

17321728
function clearPassphraseError() {
@@ -1902,8 +1898,6 @@ <h2>Message log</h2>
19021898
* @param {string} requestId
19031899
*/
19041900
async function onConfirmPassphraseExport(requestId) {
1905-
const responseRequestId =
1906-
requestId || pendingPassphraseExport.requestId;
19071901
const passphraseInput = document.getElementById("export-passphrase");
19081902
const confirmInput = document.getElementById(
19091903
"export-passphrase-confirm"
@@ -1955,7 +1949,7 @@ <h2>Message log</h2>
19551949
TKHQ.sendMessageUp(
19561950
"PASSPHRASE_ENCRYPTED_BUNDLE",
19571951
encryptedBase64,
1958-
responseRequestId
1952+
requestId
19591953
);
19601954
} catch (e) {
19611955
wipeUint8Array(plaintextCopy);

0 commit comments

Comments
 (0)