diff --git a/src/app.css b/src/app.css index c704d5b..444e051 100644 --- a/src/app.css +++ b/src/app.css @@ -14,6 +14,7 @@ --background-without-opacity: rgba(255, 255, 255, 0.7); --column-width: 42rem; --column-margin-top: 4rem; + scrollbar-width: thin; } body { @@ -22,6 +23,7 @@ body { background: transparent; box-sizing: border-box; max-width: 100vw; + scrollbar-width: thin; } #svelte { display: grid; @@ -62,4 +64,24 @@ pre { iframe { outline: none; display: none; +} + +::-webkit-scrollbar { + width: 10px; + display: block; +} +::-webkit-scrollbar-track:hover { + background: var(--fds-card-background-default); + border-radius: 15px; +} +::-webkit-scrollbar-thumb { + background-clip: content-box; + border: 4px solid transparent; + background-color: var(--fds-text-tertiary); + border-radius: 4px; +} +::-webkit-scrollbar-thumb:hover { + border: 3px solid transparent; + background-clip: content-box; + border-radius: 10px; } \ No newline at end of file diff --git a/src/lib/AddOath.svelte b/src/lib/AddOath.svelte index 46dd0f2..1aa558a 100644 --- a/src/lib/AddOath.svelte +++ b/src/lib/AddOath.svelte @@ -11,7 +11,7 @@ } from "fluent-svelte"; import { invoke } from "@tauri-apps/api/tauri"; export let uuid: string[]; - let selected_uuid: string = uuid[0]; + let selected_uuid: string; let open = false; let label: string; let issuer: string; @@ -33,57 +33,68 @@ }); open = false; } + function openDialog() { + open = !open; + selected_uuid = selected_uuid ?? uuid[0]; + }
Register a new TOTP credential - + - {#if uuid.length > 1} +
Register a new TOTP credential - ({ name: uuid, value: uuid }))} - bind:value={selected_uuid} - /> - {:else} - Register a new TOTP credential - {/if} -
- Label - -
-
- Issuer (optional) - -
-
- TOTP Secret - -
- - Advanced - -
- Algorithm -
- SHA1 - SHA256 -
-
-
- TOTP Period - -
+
+
+ {#if uuid.length > 1}
- Digits - + Key + ({ + name: uuid, + value: uuid, + }))} + bind:value={selected_uuid} + />
- - + {/if} +
+ Label + +
+
+ Issuer (optional) + +
+
+ TOTP Secret + +
+ + Advanced + +
+ Algorithm +
+ SHA1 + SHA256 +
+
+
+ TOTP Period + +
+
+ Digits + +
+
+
+