[web] Design review: last row's menu not clipped, Hostname focused after loading, popover closes on Esc and outside click, phone engine chip in the top bar, paused and needs-attention copy with Restore in the panel, change bar offers and countdown, focus after share and kept, fingerprint check when signing by hand, draft kept through sign-in
This commit is contained in:
@@ -17,8 +17,9 @@
|
||||
|
||||
let { hostname, onclose }: { hostname: string; onclose: () => void } = $props();
|
||||
|
||||
const row = $derived(app.overview?.hosts.find((h) => h.hostname === hostname));
|
||||
let on = $state(false);
|
||||
// Known before the Dialog mounts, so its focus lands on Copy link (§2.9), not the title.
|
||||
// svelte-ignore state_referenced_locally
|
||||
let on = $state(!!app.overview?.hosts.find((h) => h.hostname === hostname)?.share_links);
|
||||
let link = $state<MintedLink | null>(null);
|
||||
let minting = $state(false);
|
||||
let copied = $state(false);
|
||||
@@ -33,10 +34,9 @@
|
||||
let usingPassword = $state(false);
|
||||
let turning = $state<ApplyView | null>(null);
|
||||
let stopFollow: (() => void) | undefined;
|
||||
let secretBox: HTMLInputElement | undefined = $state();
|
||||
let secretBox: HTMLTextAreaElement | undefined = $state();
|
||||
|
||||
onMount(() => {
|
||||
on = !!row?.share_links;
|
||||
if (on) void mint();
|
||||
});
|
||||
onDestroy(() => stopFollow?.());
|
||||
@@ -122,7 +122,7 @@
|
||||
{#if link?.warning}<p class="ia-hint">{link.warning.message}</p>{/if}
|
||||
{#if problem}<Banner tone="notice" live="status">{#snippet title()}{problem}{/snippet}</Banner>{/if}
|
||||
{#if link}
|
||||
<input bind:this={secretBox} class="ia-secret" readonly value={link.url} aria-label="Share link" onfocus={(e) => (e.currentTarget as HTMLInputElement).select()} />
|
||||
<textarea bind:this={secretBox} class="ia-secret" readonly rows="3" value={link.url} aria-label="Share link" onfocus={(e) => (e.currentTarget as HTMLTextAreaElement).select()}></textarea>
|
||||
{:else if minting}
|
||||
<p class="ia-muted">Making the link…</p>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user