Skip to content

Commit

Permalink
Update logic for showing/hiding top submit button
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Dec 10, 2024
1 parent b8f75db commit 554f1af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 554f1af

Please sign in to comment.