From 554f1afdb97f05e3bf2e6ba6e12c9d6b0d1579b0 Mon Sep 17 00:00:00 2001 From: Stefan Peters Date: Tue, 10 Dec 2024 13:52:26 +0100 Subject: [PATCH] Update logic for showing/hiding top submit button --- src/client/App.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/App.vue b/src/client/App.vue index ecc0827..3fd65b2 100644 --- a/src/client/App.vue +++ b/src/client/App.vue @@ -77,9 +77,9 @@ watch(selectedSuggestions, () => { }) const showTopSubmitButton = ref(false) -watch(suggestions, () => { +watch([suggestions, selectedSuggestions], () => { setTimeout(() => { - if (document.documentElement.scrollHeight / document.documentElement.clientHeight > 1.5) { + if (document.documentElement.scrollHeight / document.documentElement.clientHeight > 1.4) { showTopSubmitButton.value = true } else { showTopSubmitButton.value = false