mirror of
https://github.com/handsomezhuzhu/2fa-tool.git
synced 2026-02-20 11:43:19 +00:00
feat: adjust settings layout in advanced config popup
Display "Algorithm" and "Captcha Length" side by side for compact layout. Co-authored-by: Simon <85533298+handsomezhuzhu@users.noreply.github.com>
This commit is contained in:
@@ -798,7 +798,7 @@ export default function TwoFactorAuth() {
|
|||||||
{t.addToken}
|
{t.addToken}
|
||||||
</Button>
|
</Button>
|
||||||
</DialogTrigger>
|
</DialogTrigger>
|
||||||
<DialogContent className="max-w-md max-h-[85vh] overflow-y-auto">
|
<DialogContent className="max-w-md">
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle>{t.addNewToken}</DialogTitle>
|
<DialogTitle>{t.addNewToken}</DialogTitle>
|
||||||
<DialogDescription>{t.addNewTokenDesc}</DialogDescription>
|
<DialogDescription>{t.addNewTokenDesc}</DialogDescription>
|
||||||
@@ -864,6 +864,7 @@ export default function TwoFactorAuth() {
|
|||||||
|
|
||||||
{showAdvanced && (
|
{showAdvanced && (
|
||||||
<div className="mt-4 space-y-4">
|
<div className="mt-4 space-y-4">
|
||||||
|
<div className="grid grid-cols-2 gap-4">
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label>{t.algorithm}</Label>
|
<Label>{t.algorithm}</Label>
|
||||||
<Select
|
<Select
|
||||||
@@ -899,6 +900,7 @@ export default function TwoFactorAuth() {
|
|||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label>{t.period}</Label>
|
<Label>{t.period}</Label>
|
||||||
<Input
|
<Input
|
||||||
|
|||||||
Reference in New Issue
Block a user