Skip to content

Commit

Permalink
Renamed .${app.slug}-header-btns to `#${app.slug}-reply-corner-btns…
Browse files Browse the repository at this point in the history
…` to make more distinct from `#${app.slug}-header-btns` ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
  • Loading branch information
kudo-sync-bot committed Feb 2, 2025
1 parent 458b7f5 commit 169d5d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 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 2025.2.1.18
// @version 2025.2.1.19
// @license MIT
// @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076
// @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076
Expand Down Expand Up @@ -2201,10 +2201,11 @@
+ `#${app.slug} > pre a, #${app.slug} > pre a:visited { color: #4495d4 }`
+ `#${app.slug} pre a:hover { color: ${ env.ui.app.scheme == 'dark' ? 'white' : '#ea7a28' }}`
+ `#${app.slug} section.loading { padding-left: 5px }` // left-pad loading status when sending replies
+ `.${app.slug}-header-btns {
+ `#${app.slug}-reply-corner-btns {
--light-scheme-color: #6f6f6f ; --dark-scheme-color: white ; float: right ; margin-left: 5px ;
fill: var(--${env.ui.app.scheme}-scheme-color) ; stroke: var(--${env.ui.app.scheme}-scheme-color) }`
+ `.${app.slug}-header-btns + pre { margin-top: 25px }` // nudge top-code blocks down to expand full-width
+ `#${app.slug}-reply-corner-btns + pre {` // nudge top-code blocks down to expand full-width
+ 'margin-top: 25px }'
+ `code #${app.slug}-copy-btn { position: relative ; top: -6px ; right: -9px }`
+ `code #${app.slug}-copy-btn > svg { height: 13px ; width: 13px ; fill: white }`
+ `#${app.slug}-chatbar {`
Expand Down Expand Up @@ -3528,8 +3529,7 @@
const baseBtnStyles = 'float: right ; cursor: pointer ;'

// Add top parent div
const cornerBtnsDiv = document.createElement('div')
cornerBtnsDiv.className = `${app.slug}-header-btns`
const cornerBtnsDiv = document.createElement('div') ; cornerBtnsDiv.id = `${app.slug}-reply-corner-btns`
appDiv.querySelector('pre').prepend(cornerBtnsDiv)

// Add Copy buttons
Expand Down

0 comments on commit 169d5d6

Please sign in to comment.