1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

Convert passphrase display to 3 cols with smaller text on mobile

This commit is contained in:
Jip Fr 2023-12-16 13:48:41 +01:00
parent 00e57a932f
commit 1c9a18a52c

View file

@ -38,10 +38,10 @@ export function PassphraseDisplay(props: { mnemonic: string }) {
<span className="text-sm">{t("actions.copy")}</span>
</button>
</div>
<div className="px-4 py-4 grid grid-cols-4 gap-2">
<div className="px-4 py-4 grid grid-cols-3 text-sm sm:text-base sm:grid-cols-4 gap-2">
{individualWords.map((word, i) => (
<div
className="px-4 rounded-md py-2 bg-authentication-wordBackground text-white font-medium text-center"
className="rounded-md py-2 bg-authentication-wordBackground text-white font-medium text-center"
// this doesn't get rerendered nor does it have state so its fine
// eslint-disable-next-line react/no-array-index-key
key={i}