Skip to content

Commit

Permalink
Restored Font Size + Speak buttons in minimized state of Anchored mod…
Browse files Browse the repository at this point in the history
…e because it looks good ↞ [auto-sync from `adamlui/chatgpt-apps`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Jul 13, 2024
1 parent 6be1009 commit 20dc14f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions greasemonkey/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.7.12.5
// @version 2024.7.12.6
// @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 @@ -1769,8 +1769,7 @@
// Update tweaks style based on settings
tweaksStyle.innerText = ( config.widerSidebar ? wsbStyles : '' )
+ ( config.stickySidebar ? ssbStyles
: config.anchored ? ( anchorStyles + (
config.expanded ? expandedStyles : config.minimized ? minimizedStyles : '' )) : '' )
: config.anchored ? ( anchorStyles + ( config.expanded ? expandedStyles : '' )) : '' )

// Update 'by KudoAI' visibility based on corner space available
const kudoAIspan = appDiv.querySelector('.kudoai')
Expand Down Expand Up @@ -2031,7 +2030,6 @@
chevronBtn.removeChild(chevronBtn.firstChild) ; chevronBtn.append(chevronSVG)
}
update.appBottomPos() // toggle visual minimization
update.tweaksStyle() // toggle Font Size + Speak btn visibility
if (!isMobile) tooltipDiv.style.opacity = 0 // remove lingering tooltip
},

Expand Down Expand Up @@ -2941,7 +2939,6 @@
anchorStyles = '#ddgpt { position: fixed ; bottom: -7px ; right: 35px ; width: 388px }'
+ '[class*="feedback"], .related-queries, #wsb-btn { display: none }'
+ '#chevron-btn, #arrows-btn { display: block !important }',
minimizedStyles = '#speak-btn, #font-size-btn { display: none }',
expandedStyles = '#ddgpt { width: 528px }'
update.tweaksStyle() ; document.head.append(tweaksStyle)

Expand Down

0 comments on commit 20dc14f

Please sign in to comment.