|
148 | 148 | // @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!) |
149 | 149 | // @author KudoAI |
150 | 150 | // @namespace https://kudoai.com |
151 | | -// @version 2025.10.15.2 |
| 151 | +// @version 2025.10.16 |
152 | 152 | // @license MIT |
153 | 153 | // @icon https://assets.ddgpt.com/images/icons/app/icon48.png?v=533ce0f |
154 | 154 | // @icon64 https://assets.ddgpt.com/images/icons/app/icon64.png?v=533ce0f |
|
1958 | 1958 | // Re-style elems |
1959 | 1959 | apiModal.querySelector('h2').style.justifySelf = 'center' // center title |
1960 | 1960 | 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 |
1963 | 1963 | btnsDiv.querySelectorAll('button').forEach((btn, idx) => { |
1964 | 1964 | if (idx == 0) btn.style.display = 'none' // hide Dismiss button |
1965 | 1965 | else btn.classList.toggle('primary-modal-btn', // emphasize preferred API |
|
1985 | 1985 |
|
1986 | 1986 | // Re-style button cluster |
1987 | 1987 | 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 | + |
1990 | 1991 | // Hack buttons |
1991 | 1992 | btns = btnsDiv.querySelectorAll('button') |
1992 | 1993 | btns.forEach((btn, idx) => { |
|
2516 | 2517 | // Main modal styles |
2517 | 2518 | + `@keyframes modal-zoom-fade-out { |
2518 | 2519 | 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 | + } |
2520 | 2522 | .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 | + } |
2523 | 2526 | .chatgpt-modal p { margin: -8px 0 -14px 4px ; font-size: 1.55rem } /* pos/size modal msg */ |
2524 | 2527 | .chatgpt-modal a { color: #${ env.ui.app.scheme == 'dark' ? '00cfff' : '1e9ebb' } !important } |
2525 | 2528 | .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% } |
2527 | 2530 | .chatgpt-modal button { /* this.alert() buttons */ |
2528 | 2531 | min-width: 121px ; padding: ${ env.browser.isMobile ? '7px' : '4px 15px' } !important ; |
2529 | 2532 | cursor: pointer ; border-radius: 0 !important ; height: 39px ; |
|
0 commit comments