Skip to content

Commit 0aadec3

Browse files
committed
1 parent d94f05c commit 0aadec3

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

chatgpt/duckduckgpt/duckduckgpt.user.js

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.10.15.2
151+
// @version 2025.10.16
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/app/icon48.png?v=533ce0f
154154
// @icon64 https://assets.ddgpt.com/images/icons/app/icon64.png?v=533ce0f
@@ -1958,8 +1958,8 @@
19581958
// Re-style elems
19591959
apiModal.querySelector('h2').style.justifySelf = 'center' // center title
19601960
const btnsDiv = apiModal.querySelector('.modal-buttons')
1961-
btnsDiv.style.cssText = ` /* y-pad, gridify */
1962-
margin: 18px 0px 14px !important ; display: grid ; grid-template-columns: repeat(3, 1fr) ; gap: 10px`
1961+
btnsDiv.style.cssText = `margin: 18px 0px 6px !important ; ${ env.browser.isPhone ? ''
1962+
: 'flex-wrap: wrap ; justify-content: center ; gap: 9px' }` // gridify desktop btns
19631963
btnsDiv.querySelectorAll('button').forEach((btn, idx) => {
19641964
if (idx == 0) btn.style.display = 'none' // hide Dismiss button
19651965
else btn.classList.toggle('primary-modal-btn', // emphasize preferred API
@@ -1985,8 +1985,9 @@
19851985

19861986
// Re-style button cluster
19871987
const btnsDiv = feedbackModal.querySelector('.modal-buttons')
1988-
btnsDiv.style.cssText += `display: flex ; flex-wrap: wrap ; justify-content: center ;
1989-
margin-top: -2px !important` // close gap between title/btns
1988+
btnsDiv.style.cssText = `margin-top: 12px !important ; ${ env.browser.isPhone ? ''
1989+
: 'flex-wrap: wrap ; justify-content: center ; gap: 9px' }` // gridify desktop btns
1990+
19901991
// Hack buttons
19911992
btns = btnsDiv.querySelectorAll('button')
19921993
btns.forEach((btn, idx) => {
@@ -2516,14 +2517,16 @@
25162517
// Main modal styles
25172518
+ `@keyframes modal-zoom-fade-out {
25182519
0% { opacity: 1 } 50% { opacity: 0.25 ; transform: scale(1.05) }
2519-
100% { opacity: 0 ; transform: scale(1.35) }}
2520+
100% { opacity: 0 ; transform: scale(1.35) }
2521+
}
25202522
.chatgpt-modal > div {
2521-
padding: 20px 25px 24px 31px !important ; /* increase alert padding */
2522-
background-color: white !important ; color: black }
2523+
background-color: white !important ; color: black ;
2524+
padding: 20px 25px 24px 31px !important /* increase alert padding */
2525+
}
25232526
.chatgpt-modal p { margin: -8px 0 -14px 4px ; font-size: 1.55rem } /* pos/size modal msg */
25242527
.chatgpt-modal a { color: #${ env.ui.app.scheme == 'dark' ? '00cfff' : '1e9ebb' } !important }
25252528
.modal-buttons {
2526-
margin: 24px -5px -3px ${ env.browser.isMobile ? -5 : -15 }px !important ; width: 100% }
2529+
margin: 24px -5px -3px ${ env.browser.isMobile ? -5 : -11 }px !important ; width: 100% }
25272530
.chatgpt-modal button { /* this.alert() buttons */
25282531
min-width: 121px ; padding: ${ env.browser.isMobile ? '7px' : '4px 15px' } !important ;
25292532
cursor: pointer ; border-radius: 0 !important ; height: 39px ;

0 commit comments

Comments
 (0)