Skip to content

Commit

Permalink
Removed no-longer needed footer offset ↞ [auto-sync from `adamlui/cha…
Browse files Browse the repository at this point in the history
…tgpt-apps/duckduckgpt`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Oct 1, 2024
1 parent 8054bf3 commit 0097e57
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions chatgpt/duckduckgpt/duckduckgpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.9.30.2
// @version 2024.9.30.3
// @license MIT
// @icon https://media.ddgpt.com/images/icons/duckduckgpt/icon48.png?af89302
// @icon64 https://media.ddgpt.com/images/icons/duckduckgpt/icon64.png?af89302
Expand Down Expand Up @@ -1872,8 +1872,6 @@
const relatedQueriesDiv = appDiv.querySelector('.related-queries')
if (relatedQueriesDiv) { // update visibility based on latest setting
relatedQueriesDiv.style.display = config.rqDisabled || config.anchored ? 'none' : 'flex'
if (!env.browser.isMobile) appFooter.style.right = ( // counteract right-offset bug from chatbar padding
relatedQueriesDiv.style.display == 'flex' ? 0 : '-72px' )
}
},

Expand Down Expand Up @@ -2357,8 +2355,6 @@

// Hide/remove elems
appDiv.querySelector('.related-queries')?.remove() // remove related queries
if (!env.browser.isMobile) // hide 'Send reply' tooltip post-send btn click + reset show.reply()'s counteract right-offset bug from chatbar padding
tooltipDiv.style.opacity = appFooter.style.right = 0

// Show loading status
const replySection = appDiv.querySelector('section')
Expand Down Expand Up @@ -3365,7 +3361,6 @@
appDiv.append(standbyBtn)
show.reply.standbyBtnClickHandler = function() {
appAlert('waitingResponse')
if (!env.browser.isMobile) appFooter.style.right = 0 // reset counteract right-offset bug from chatbar padding
msgChain.push({ role: 'user', content: augmentQuery(new URL(location.href).searchParams.get('q')) })
show.reply.userInteracted = true ; show.reply.chatbarFocused = false
menus.pin.topPos = menus.pin.rightPos = null
Expand Down Expand Up @@ -3402,7 +3397,6 @@
: app.msgs.tooltip_sendReply ) + '...'
continueChatDiv.append(chatTextarea)
replyForm.append(continueChatDiv) ; replySection.append(replyForm)
if (!env.browser.isMobile) appFooter.style.right = '-72px' // counteract right-offset bug from chatbar padding
appDiv.append(replySection);

// Create/append chatbar buttons
Expand Down Expand Up @@ -3533,7 +3527,6 @@

get.related.replyIsQuestion = null
update.style.tweaks() // to shorten <pre> max-height
if (!env.browser.isMobile) appFooter.style.right = 0 // reset show.reply()'s counteract right-offset bug from chatbar padding
}
}
}
Expand Down

0 comments on commit 0097e57

Please sign in to comment.