diff options
| author | Fuwn <[email protected]> | 2026-04-17 15:04:43 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-04-17 15:04:43 +0000 |
| commit | 91209582ccd1d38ce1d0dfd856a917d685136ea6 (patch) | |
| tree | 17f4107dbbb501e8d85d47454b494f37e31741f3 | |
| parent | fix(ui): hide media roulette button when only one item is pickable (diff) | |
| download | due.moe-91209582ccd1d38ce1d0dfd856a917d685136ea6.tar.xz due.moe-91209582ccd1d38ce1d0dfd856a917d685136ea6.zip | |
fix(ui): hide follow-fix toggle link until a username is entered
Previously the link rendered "Toggle follow for ..." and was clickable
with an empty submission. Only render once the input has content so
there is no dead affordance.
| -rw-r--r-- | src/lib/Tools/FollowFix.svelte | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/Tools/FollowFix.svelte b/src/lib/Tools/FollowFix.svelte index c072cf5e..6c599569 100644 --- a/src/lib/Tools/FollowFix.svelte +++ b/src/lib/Tools/FollowFix.svelte @@ -26,9 +26,11 @@ let submit = ""; } }} /> - <a href={'#'} onclick={() => (submit = input)}> - Toggle follow for {input.length === 0 ? '...' : input} - </a> + {#if input.length > 0} + <a href={'#'} onclick={() => (submit = input)}> + Toggle follow for {input} + </a> + {/if} </p> {#if submit.length > 0} |