Skip to content

Commit

Permalink
Tilted expand/shrink icon in Anchored mode to hint expansions can be …
Browse files Browse the repository at this point in the history
…horizontal-only ↞ [auto-sync from `adamlui/chatgpt-apps`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Jul 13, 2024
1 parent c9ba2f2 commit 76095b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 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.11
// @version 2024.7.12.12
// @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 @@ -2579,8 +2579,9 @@
// Create/append Expand/Shrink button
var arrowsSpan = document.createElement('span'),
arrowsSVG = icons.arrowsDiagonal.create()
arrowsSVG.style.transform = 'rotate(-7deg)' // tilt slightly to hint expansions are often horizontal-only
arrowsSpan.id = 'arrows-btn' // for toggle.tooltip()
arrowsSpan.className = 'corner-btn' ; arrowsSpan.style.margin = '1.5px 12px 0 0'
arrowsSpan.className = 'corner-btn' ; arrowsSpan.style.margin = '0.5px 12px 0 0'
arrowsSpan.style.display = 'none' // to activate from anchorStyles only
arrowsSpan.append(arrowsSVG) ; cornerBtnsDiv.append(arrowsSpan)
}
Expand Down

0 comments on commit 76095b0

Please sign in to comment.